按鈕這個空間我非常的討厭,用**寫很噁心
uibutton *button =[uibutton buttonwithtype:uibuttontypecustom];button.frame = cgrectmake(0, 0, 50, 50
);//
button.center = cgpointmake(cgrectgetmidx(self.view.bounds), cgrectgetmidy(self.view.bounds));
[button settitle:@"
轉換轉換轉換
"forstate:uicontrolstatenormal];
[button setbackgroundcolor:[uicolor whitecolor]];
[button settitlecolor:[uicolor blackcolor] forstate:uicontrolstatenormal];
[button addtarget:self action:@selector(turntoanothercontroller:) forcontrolevents:uicontroleventtouchdown];
[self.view addsubview:button];
這是一段簡單示例,其中
設定title 只能用 settitle: 方法
設定字型顏色也只能用對應方法
button有個textlabel 那個是唯讀 設定任何都沒用的
重新整理按鈕 1
將它的值預設設定在介面上,重新整理時使用s 獲取查詢引數 string lineid request.getparameter productline string familyid request.getparameter productfamily string productid reques...
程式設計小結(1)
char strchr const char s,int c char strrchr const char s,int c include 函式說明 strchr 查詢字串s中第一次出現字元c的位置,並返回該字元以及該字元之後所有的字元 strrchr 查詢字串s中最後一次出現字元c的位置,同時返...
ASCII 編碼小結1
公尺老師,今天講課講到了ascii編碼,因為這是自己第一次接觸硬體輸入輸出編碼,為了能明白,特地總結了一下此編碼。目前計算機中用得最廣泛的字符集及其編碼,是由美國國家標準局 ansi 制定的ascii碼 american standard code for information interchan...