摘要:
UIPageControl用于显示滑动视图实际拥有的页数 UIPageControl *page = [[UIPageControl alloc] initWithFrame:CGRectMake(100, 100, 100, 30); page.background = [UIColor redC 阅读全文
摘要:
UIScrollView是所有滑动视图的基类 UIScrollView *scroll = [[UIScrollView alloc] initWithFrame:CGRectMake(100, 100, 200, 200)]; scroll.background = [UIColor redCol 阅读全文
摘要:
UISlider *slider = [[UISlider alloc] initWithFrame:CGRectMake:(100, 100, 200, 25); //创建一个滑竿对象 slider.backgroundColor = [UIColor redColor]; slider.mini 阅读全文
摘要:
创建UISegmentControl对象 UISegmentedControl *segmented = [[UISegmentedControl alloc] initWithItems:@[@"北京", @"上海", @"广州"]]; segmented.frame = CGRectMake(1 阅读全文
摘要:
UISwitch iOS中的开关控件,只有两种状态,打开或关闭. aSwitch.tintColor = [UIColor redColor]; //关闭状态下的渲染颜色 aSwitch.onTintColor = [UIColor blueColor]; //打开状态下的渲染颜色. aSwitch 阅读全文