摘要:
1.创建UIView UIView * redView = [[UIView alloc] initWithFrame:CGRectMake(10, 100, 200, 100)]; UIView * blueView = [[UIView alloc] init]; 把blueView粘贴到了redView上 [redView addSubview:bl... 阅读全文
posted @ 2016-09-20 16:20
brave-sailor
阅读(264)
评论(0)
推荐(0)
摘要:
这段代码动态的创建了一个UIButton,并且把相关常用的属性都列举了.希望对大家有用. //这里创建一个圆角矩形的按钮 UIButton *button1 = [UIButton buttonWithType:UIButtonTypeRoundedRect]; // 能够定义的button类型有以 阅读全文
posted @ 2016-09-20 16:05
brave-sailor
阅读(201)
评论(0)
推荐(0)