摘要:
UIKit提供了一组控件:UISwitch开关、UIButton按钮、UISegmentedControl分段控件、UISlider滑块、UITextField文本字段控件、UIPageControl分页控件。控件是对UIView派生类的实用增强及补充,并可以直接附着于导航栏、表格单元,甚至更大的对... 阅读全文
摘要:
UIImageView相当于一个相框,用来显示图片,里边可以是一张图片,也可以是一组图片。RootView.m- (void)p_setupView{ self.backgroundColor = [UIColor yellowColor]; self.imv = [[UIImageView all... 阅读全文
摘要:
在ViewController.m中。@interface ViewController ()@property(nonatomic, strong) UIView * MyView;@end@implementation ViewController- (void)viewDidLoad { [s... 阅读全文
摘要:
在ViewController.m中- (void)viewDidLoad { [super viewDidLoad]; self.imageView = [[UIImageView alloc] initWithImage:[UIImage imageNamed:@"tutu.png"]]; ... 阅读全文
摘要:
在ViewController.m中声明@interface ViewController ()@property (nonatomic, strong) UIView *myView;@end@implementation ViewController- (void)viewDidLoad { [... 阅读全文