![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
UIImageView
MEL-2000
这个作者很懒,什么都没留下…
展开
-
frame 和 bounds 区别
- (void)creatViews { //frame 坐标都是 相对于父视图坐标系的坐标 UIView *redView = [[UIView alloc] initWithFrame:CGRectMake(30, 50, 200, 100)]; //设置背景颜色 redView.backgroundColor = [UIColor redColor];原创 2015-05-15 08:41:45 · 480 阅读 · 0 评论 -
UIImageView 基本语法
1.UIImageView 基本语法//要想显示一张图片到屏幕上 必须加载到内存中UIImage *image = [UIImage imageNamed:@“XXX”];需要有一个载体进行显示1.UIButton2.UIImageView字符串要想显示 也是需要有一个载体UILabel/* 1.把图片导入工程 2.把原创 2015-05-15 08:30:18 · 401 阅读 · 0 评论 -
iOS事件传递
- (void)creatViews { //frame 坐标都是 相对于父视图坐标系的坐标 UIView *redView = [[UIView alloc] initWithFrame:CGRectMake(30, 50, 200, 100)]; //设置背景颜色 redView.backgroundColor = [UIColor redColor];原创 2015-05-15 08:37:07 · 306 阅读 · 0 评论 -
UITextField
-(void)creatTextField{ CGFloat pendding =10 ; UITextField * text1 = [[UITextField alloc]initWithFrame:CGRectMake(pendding, 30, KScreenSize.width-2*pendding, 30)]; //设置背景 text1.backg原创 2015-05-15 08:50:10 · 261 阅读 · 0 评论