- 博客(4)
- 资源 (1)
- 收藏
- 关注
转载 UIButton用法小结
// 初始化按钮并设置类型UIButton *btn = [UIButton buttonWithType:UIButtonTypeRoundedRect];// 能够定义的UIButton类型有以下6种:// typedef enum {// UIButtonTypeCustom = 0, 自定义风格// UIButtonTypeR
2015-09-08 23:15:18
250
转载 UILable用法小结
// 初始化标签UILabel *label = [[UILabel alloc] initWithFrame:CGRectMake(10, 100, 300, 150)];// 设置标签文字label.text = @"This is a test text.This is a test text.This is a test text.";// 设置标签文字字体// 使用系统字体l
2015-09-08 23:11:12
279
转载 UITextView 用法小结
// 初始化输入框并设置位置和大小UITextView *textView = [[UITextView alloc] initWithFrame:CGRectMake(10, 10, 300, 180)];// 设置预设文本textView.text = @"";// 设置文本字体textView.font = [UIFont fontWithName:@"Arial" size:16
2015-09-08 23:08:37
290
转载 UITextField 用法小结
// 初始化输入框并设置位置和大小UITextField *textField = [[UITextField alloc] initWithFrame:CGRectMake(10, 100, 300, 30)];// 设置输入框提示textField.placeholder = @"TextField Tip";// 输入框中预先输入的文字textField.text = @"预先输入
2015-09-08 23:05:03
266
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人