1.代码跳转,vc的界面需要写在xib上UIViewController *vc = [[UIViewController alloc] init];//普通控制器[self presentViewController:vc animated:YES completion:nil];2.storyb...
分类:
其他好文 时间:
2015-12-22 17:42:07
阅读次数:
114
cocoa本身的UIViewController提供了一些用来模态展示ViewController的方法,在比较旧的系统上是 presentModalViewController这个接口,在5.0及以后的系统中统一为presentViewController接口。我们通常可以这么调用:[self p...
分类:
其他好文 时间:
2015-12-22 12:54:33
阅读次数:
134
问题: *** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: '-[UIViewController _loadViewFromNibNamed:bundle:] load....
分类:
其他好文 时间:
2015-12-22 07:53:55
阅读次数:
211
present一个半透明的UIViewController,跟add个view差不多的意思,一般会遇到的问题是跳转到下一个页面加载完背景色又变回去了,没有半透明的效果,加上一句代码就好了。1,present 一个UIViewControllerSecondViewController *second...
分类:
其他好文 时间:
2015-12-21 15:55:09
阅读次数:
127
1 UIWindow、UILabel、UIColor、UIScreen、UIViewController、UIView、UIControl、UIButton、IBOutlet、IBAction、UIStepper、 UISlider、 UISwitch、UITextField、UIA...
分类:
其他好文 时间:
2015-12-21 14:23:53
阅读次数:
249
创建三个类C++代码BasicViewController:UIViewControllerSecondViewController:UIViewControllerThirdViewController:UIViewController然后我们在BasicViewController .m文件中p...
分类:
移动开发 时间:
2015-12-18 14:33:58
阅读次数:
244
一、结构按结构可以对iOS的所有ViewController分成两类:1、主要用于展示内容的ViewController,这种ViewController主要用于为用户展示内容,并与用户交互,如UITableViewController,UIViewController。2、用于控制和显示其他Vie...
分类:
其他好文 时间:
2015-12-16 21:21:32
阅读次数:
159
#import typedef void (^MyBlock)(NSString*);@interface SecondViewController : UIViewController@property (retain,nonatomic)UITextField* myTextField;@pro...
分类:
移动开发 时间:
2015-12-16 12:30:33
阅读次数:
688
@interface ViewController : UIViewController{ UIScrollView * scrollView; UIPageControl * pageControl; // BOOL pageControlIsChangingPage; NSMutab...
分类:
其他好文 时间:
2015-12-16 00:29:18
阅读次数:
236
iOS中的事件可以分为三大类:1> 触摸事件 2> 加速计事件3>远程控制事件响应者对象在iOS中不是任何对象都能处理事件,只有继承了UIResponder的对象才能接收并处理事件.我们称之为"响应者对象".UIApplication,UIViewController,UIView都继承自UIRes...
分类:
移动开发 时间:
2015-12-14 16:34:25
阅读次数:
198