new AlertDialog.Builder(MainActivity.this) .setTitle("aaa") .setIcon(R.drawable.ic_launcher) .setMessage(...
分类:
其他好文 时间:
2015-10-16 13:09:12
阅读次数:
185
在MainActivity.onCreate(Bundle savedInstanceState){}设置背景图和标题。1 setTitle("wyl的diary");//标题,即左上角的2 getWindow().setBackgroundDrawableResou...
分类:
移动开发 时间:
2015-09-15 17:54:38
阅读次数:
138
[btn setImage:imgNor forState:UIControlStateNormal]; [btn setImage:imgSel forState:UIControlStateSelected]; [btn setTitle:[arrLa...
分类:
移动开发 时间:
2015-09-09 19:30:29
阅读次数:
626
SCAllOrderViewController *redController = [[SCAllOrderViewController alloc] init]; redController.tag=1; [redController setTitle:@"全部"]; SCWatiPa...
分类:
其他好文 时间:
2015-09-09 16:43:41
阅读次数:
128
Label.numberOfLines 可以控制其内的行数若=0 只要空间够 可以无数行若=1 1行 ; 若=2 2行;类推UIbutton 通过代码设置字 和 图片UIbutton *l1=[UIbuttom alloc]initwithframe:CGrectmake….[l1 settitle...
分类:
编程语言 时间:
2015-09-07 00:24:56
阅读次数:
161
1.确认取消对话框:AlertDialog.Builder builder = new Builder(this); // 告诉工厂生产什么样的产品 builder.setTitle("友情提醒"); builder.setMessage("若练此功,必先自...
分类:
移动开发 时间:
2015-08-27 22:27:07
阅读次数:
310
一、每个segment都能被点击,相当于集成了若干个button。二、常用API1,initWithItems: //UISegmentedControl独有的初始化?法,?来创建多个分段 2,setTitle: forSegmentAtIndex: //为指定下标的分段设置title 3,sele...
分类:
其他好文 时间:
2015-08-27 00:21:39
阅读次数:
170
[self.btnEco
setTitle:[NSString
stringWithFormat:@"%0.1f",model.targetTemperature]
forState:UIControlStateNormal];
float floatValue=123.0000
NSString *strValue=[NSString stringWithFormat:@"%0...
分类:
移动开发 时间:
2015-08-13 22:15:36
阅读次数:
820
btn.frame = CGRectMake(x, y, width, height);[btn setTitle: @"search" forState: UIControlStateNormal];//设置按钮上的自体的大小//[btn setFont: [UIFont systemFontSi...
分类:
移动开发 时间:
2015-08-09 20:22:53
阅读次数:
457
1.设置title1 [btn setTitle: @"search" forState: UIControlStateNormal];2.设置字体1 //[btn setFont: [UIFont systemFontSize: 14.0]]; //这种可以用来设置字体的大小,但是可能会被移...
分类:
移动开发 时间:
2015-08-06 01:51:37
阅读次数:
124