1. 新建两个视图控制器类(继承自UIViewController), 在AppDelegate.m中指定根视图控制器#import "AppDelegate.h"#import "RootViewController.h"#import "LeadViewController.h"@interfa...
分类:
移动开发 时间:
2015-12-08 22:12:36
阅读次数:
248
错误原因在于 AppDelegate 中 didFinishLaunchingWithOptions 结束前 未定义 rootViewController,Xcode7规定必须要有rootViewController。定义一个空UIViewController即可,添加如下代码解决:UIViewCo...
分类:
移动开发 时间:
2015-12-07 14:01:42
阅读次数:
208
获取当前的window 以及设置其rootViewController
// How iOS app MVC worksView, Window,AppDelegateViewController, RootViewController// On Pixel VS PointThe 'point' (pt) on the other hand is a unit of ...
分类:
其他好文 时间:
2015-12-04 12:46:29
阅读次数:
196
一,效果图。二,工程图。三,代码。RootViewController.hRootViewController.m- (void)viewDidLoad{ [super viewDidLoad]; // Do any additional setup after loading the ...
分类:
其他好文 时间:
2015-12-03 09:53:09
阅读次数:
108
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions{ self.window = [[UIWindow alloc] init...
分类:
移动开发 时间:
2015-12-01 14:49:47
阅读次数:
204
一,工程目录。二,代码。RootViewController.m#import "RootViewController.h"#import "NSString+TripleDES.h"#import "GTMBase64.h"@interface RootViewController ()@end@...
分类:
其他好文 时间:
2015-11-30 09:52:34
阅读次数:
224
UITabBarController是IOS中很常用的一个viewController,例如系统的闹钟程序,ipod 程序等。UITabBarController通常作为整个程序的rootViewController,而且不能添加到别的container viewController中。 首先我们....
分类:
其他好文 时间:
2015-11-28 00:57:19
阅读次数:
204
一,效果图:二,工程目录。三,代码RootViewController.h#import @interface RootViewController : UIViewController{ UITableView *MyTableView;}@endRootViewController.m#i...
分类:
其他好文 时间:
2015-11-27 10:40:09
阅读次数:
215
#import "RootViewController.h"#import // 引入@interface RootViewController ()@property (nonatomic,strong)AVPlayer *player;@property (nonatomic,strong)AV...
分类:
其他好文 时间:
2015-11-21 18:20:10
阅读次数:
185