草庐IT

APPDELEGATE

全部标签

objective-c - 如何在 AppDelegate 中执行 Segue?

我正在尝试使用Storyboard在IOS5.1上完成一个应用程序。基本上我正在做一个保管箱应用程序。由于我使用的是DropboxSDK,因此在AppDelegate.m中处理了指向Dropbox的链接。用户可以选择能够从session中取消链接并在不同的ViewController中再次链接。因此,每次用户链接和未链接的应用程序都必须将View从Appdelegate切换到未连接到rootviewcontroller的ViewController在原始Dropbox的示例中,Dropbox像下面的代码一样处理转换-(BOOL)application:(UIApplication*)a

objective-c - 如何在 AppDelegate 中执行 Segue?

我正在尝试使用Storyboard在IOS5.1上完成一个应用程序。基本上我正在做一个保管箱应用程序。由于我使用的是DropboxSDK,因此在AppDelegate.m中处理了指向Dropbox的链接。用户可以选择能够从session中取消链接并在不同的ViewController中再次链接。因此,每次用户链接和未链接的应用程序都必须将View从Appdelegate切换到未连接到rootviewcontroller的ViewController在原始Dropbox的示例中,Dropbox像下面的代码一样处理转换-(BOOL)application:(UIApplication*)a

ios - 此类不符合键 View 的键值编码。

我在AppDelegate中遇到问题,在运行应用程序时出现此错误:Terminatingappduetouncaughtexception'NSUnknownKeyException',reason:'[setValue:forUndefinedKey:]:thisclassisnotkeyvaluecoding-compliantforthekeyview.'这是AppDelegate.h的代码#import@classViewController;@interfaceAppDelegate:UIResponder{//UINavigationController*navigatio

ios - 此类不符合键 View 的键值编码。

我在AppDelegate中遇到问题,在运行应用程序时出现此错误:Terminatingappduetouncaughtexception'NSUnknownKeyException',reason:'[setValue:forUndefinedKey:]:thisclassisnotkeyvaluecoding-compliantforthekeyview.'这是AppDelegate.h的代码#import@classViewController;@interfaceAppDelegate:UIResponder{//UINavigationController*navigatio

iphone - 如何从 AppDelegate 中的 TabBarController 获取 ViewController?

我用的是iOS5的storyboard,我的初始viewcontroller是TabBarController,view1&view2&view3&view4有四种关系,那么,如何获取view3的viewcontroller呢?我试过:[[[[self.window.rootViewControllernavigationController]tabBarController]viewControllers]objectAtIndex:2];但它不起作用...... 最佳答案 您说您的初始(根)ViewController是UITa

iphone - 如何从 AppDelegate 中的 TabBarController 获取 ViewController?

我用的是iOS5的storyboard,我的初始viewcontroller是TabBarController,view1&view2&view3&view4有四种关系,那么,如何获取view3的viewcontroller呢?我试过:[[[[self.window.rootViewControllernavigationController]tabBarController]viewControllers]objectAtIndex:2];但它不起作用...... 最佳答案 您说您的初始(根)ViewController是UITa

ios - 如果要使用主 Storyboard文件,应用程序委托(delegate)必须实现 window 属性

我正在以编程方式实现ListViewController。当我尝试运行该项目时,出现错误:2012-11-0722:46:34.719myTableViewControl[12021:c07]Theappdelegatemustimplementthewindowpropertyifitwantstouseamainstoryboardfile.2012-11-0722:46:34.722myTableViewControl[12021:c07]-[AppDelegatesetWindow:]:unrecognizedselectorsenttoinstance0x7674e70201

ios - 如果要使用主 Storyboard文件,应用程序委托(delegate)必须实现 window 属性

我正在以编程方式实现ListViewController。当我尝试运行该项目时,出现错误:2012-11-0722:46:34.719myTableViewControl[12021:c07]Theappdelegatemustimplementthewindowpropertyifitwantstouseamainstoryboardfile.2012-11-0722:46:34.722myTableViewControl[12021:c07]-[AppDelegatesetWindow:]:unrecognizedselectorsenttoinstance0x7674e70201

ios - 在 iOS 9 AppDelegate 中未调用 supportedInterfaceOrientationsForWindow

我正在使用iOS9GM测试我们的应用程序,但在我的AppDelegate中根本没有看到调用supportedInterfaceOrientationsForWindow。我希望在应用旋转时调用此委托(delegate)函数:-(UIInterfaceOrientationMask)application:(UIApplication*)applicationsupportedInterfaceOrientationsForWindow:(UIWindow*)window这在iOS7/8中运行良好。有没有其他人看到这个或对可能发生的事情有任何想法? 最佳答案

ios - 在 iOS 9 AppDelegate 中未调用 supportedInterfaceOrientationsForWindow

我正在使用iOS9GM测试我们的应用程序,但在我的AppDelegate中根本没有看到调用supportedInterfaceOrientationsForWindow。我希望在应用旋转时调用此委托(delegate)函数:-(UIInterfaceOrientationMask)application:(UIApplication*)applicationsupportedInterfaceOrientationsForWindow:(UIWindow*)window这在iOS7/8中运行良好。有没有其他人看到这个或对可能发生的事情有任何想法? 最佳答案