在iOS9中App被其他应用唤起的时候Crash,正常启动或者调试模式都不会Crash.通过XCode - Window -Device,查看设备的log,如下Assertion failure in -[UIApplication _runWithMainScene:transitionConte...
分类:
移动开发 时间:
2015-11-21 00:32:38
阅读次数:
352
1、使用代理delegate的方法2、使用通知Notification的方法3、KVO等方法~~~~~~~~~~~~~~~~1、使用代理delegate的方法rootViewController (A)subVIewController (B).m实现效果:
分类:
移动开发 时间:
2015-11-09 19:00:07
阅读次数:
227
#import "RootViewController.h"@interface RootViewController ()@end@implementation RootViewController- (void)viewDidLoad { [super viewDidLoad]; UIBu...
分类:
其他好文 时间:
2015-11-04 09:19:28
阅读次数:
145
#import @interface AppDelegate : UIResponder @property (strong, nonatomic) UIWindow *window;@end#import "AppDelegate.h"#import "RootViewController.h"@...
分类:
移动开发 时间:
2015-11-01 16:41:51
阅读次数:
216
1> UIWindow *window = [UIApplication sharedApplication].keyWindow; window.rootViewController = VC; 2> [[[UIApplication sharedApplication] delegate...
分类:
其他好文 时间:
2015-11-01 16:32:17
阅读次数:
138
#import "RootViewController.h"@interface RootViewController (){ CAGradientLayer *gradientLayer; NSTimer *timer;}@end@implementation RootViewControll.....
分类:
其他好文 时间:
2015-11-01 11:26:58
阅读次数:
189
//在RootViewController.h里面遵守协议#import @interface RootViewController : UIViewController@end------------------------------------------------------------/...
分类:
其他好文 时间:
2015-10-31 21:23:12
阅读次数:
224
UINavigationController, 导航控制器单视图控制器工程, window的rootViewController只能管理一个视图控制器缺点: 切换页面必须手动修改代码self.window.rootViewController = [[[RootViewController allo...
分类:
其他好文 时间:
2015-10-31 19:57:25
阅读次数:
185
#import?"RootViewController.h"
#define?kScreenSize?[UIScreen?mainScreen].bounds.size
#define?kPrintDebug?NSLog(@"%s",__func__)
@interface?RootViewController?()<UIScrollViewDelegate>
{
?...
分类:
其他好文 时间:
2015-10-31 13:09:10
阅读次数:
175
#import "RootViewController.h"@interface RootViewController ()@end@implementation RootViewController- (void)viewDidLoad { [super viewDidLoad]; NSStr.....
分类:
Web程序 时间:
2015-10-30 18:35:33
阅读次数:
174