摘要:
UIStepper * stepper = [[UIStepper alloc]initWithFrame:CGRectMake(50, 100, 150, 40)]; //********最小值和最大值 stepper.maximumValue = 100; ste... 阅读全文
摘要:
创建分段选择器 UISegmentedControl * sc = [[UISegmentedControl alloc]initWithFrame:CGRectMake(50, 100, 200, 30)]; [sc insertSegmentWithTitle:@"第一页" ... 阅读全文
摘要:
创建ProgressView UIProgressView * progressView = [[UIProgressView alloc]initWithFrame:CGRectMake(50, 100, 200, 10)]; progressView.progressView... 阅读全文
摘要:
创建提示框 //创建提示框 //标题 提示内容 代理对象 按钮 UIAlertView * alertView = [[UIAlertView alloc]initWithTitle:@"警告" message:@"萨达姆已经做好战斗准备" delegate:self ca... 阅读全文
摘要:
创建UIActivityIndicatorView UIActivityIndicatorView * AIV = [[UIActivityIndicatorView alloc]initWithFrame:CGRectMake(50, 50, 50, 50)]; //设置样式 ... 阅读全文
摘要:
UIActionSheet在iOS8.3之后已不建议使用。 可以使用UIAlertController+UIAlertControllerStyleActionSheet获得同样的效果创建UIActionSheet UIActionSheet * as = [[UIActionSheet al... 阅读全文
摘要:
把NavigationController设为根视图控制器 FirstViewController * firstVC = [[FirstViewController alloc]init]; UINavigationController * nc = [[UINavig... 阅读全文