UI控件
水木灵辰O
七八五十六~
展开
-
UITextField详解
#import "ViewController.h"@interface ViewController () <UITextFieldDelegate>@property (nonatomic, strong) UITextField *textField;@end@implementation ViewController- (void)viewDidLoad { [super viewD原创 2016-01-25 16:48:28 · 294 阅读 · 0 评论 -
UILabel详解
NSMutableAttributedString *textLabelStr = [[NSMutableAttributedString alloc] initWithString:@"设置属性文本"]; [textLabelStr setAttributes:@{NSForegroundColorAttributeName :[UIColor lightGrayColor], NSFon原创 2016-01-26 16:31:05 · 540 阅读 · 0 评论 -
UIImageView详解
#import "ViewController.h"@interface ViewController ()@property (nonatomic, strong) UIImageView *imageView;@end@implementation ViewController- (void)viewDidLoad { [super viewDidLoad]; // 五种初始化方法原创 2016-01-27 10:15:13 · 640 阅读 · 0 评论 -
UIButton详解
// 初始化按钮样式 UIButton *button = [UIButton buttonWithType:UIButtonTypeCustom]; /* UIButtonTypeCustom 自定义 (默认 无样式) UIButtonTypeRoundedRect 白色圆角矩形 UIButtonTypeDetai原创 2016-01-27 14:19:52 · 1789 阅读 · 0 评论 -
UITableView详解
#import "ViewController.h"@interface ViewController () <UITableViewDataSource, UITableViewDelegate>@property (nonatomic, strong) UITableView *tableView;@property (nonatomic, strong) NSMutableArray *da原创 2016-02-16 15:38:46 · 1724 阅读 · 0 评论