摘要: 1 - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions { 2 // Override point for customization after application launch. 3 4 /... 阅读全文
posted @ 2017-09-21 21:46 vector11248 阅读(135) 评论(0) 推荐(0)
摘要: 1 //创建一个可以显示图片的按钮。 2 -(void)creatImageBtn{ 3 UIButton *btn = [UIButton buttonWithType:UIButtonTypeCustom]; 4 btn.frame = CGRectMake(100, 100, 100, 100); 5 UIImage *icon1 = [UIImage i... 阅读全文
posted @ 2017-09-21 10:57 vector11248 阅读(269) 评论(0) 推荐(0)
摘要: 1 -(void)creatUI{ 2 //创建一个UILabel 3 UILabel* label = [[UILabel alloc] init]; 4 5 label.text = @"Hello world"; 6 7 label.frame = CGRectMake(100, 200, 160, 40); 8 ... 阅读全文
posted @ 2017-09-21 10:04 vector11248 阅读(145) 评论(0) 推荐(0)