You need to sign in to do that
Don't have an account?
Change SFAuthorizingViewController.xib and SFNativeRootViewController.xib in SalesforceMobileSDK 1.4
Hello friends, long time no see.
I've just updated to the new SalesforceMobileSDK 1.4 for iOS and i want to change the SFAuthorizingViewController.xib and the SFNativeRootViewController.xib, how and where can i do this? in my AppDelegate.m?
I need to control this because i already have an iOS App using the 1.2 version and i used to do this in the SFNativeRestAppDelegate.m (
- (void)setupAuthorizingViewController method). My App works for iPhone and iPad so i need this migrate this too.
// Set up a view controller for the authentication process.
SFAuthorizingViewController *authVc = nil;
UIDevice *device = [UIDevice currentDevice];
if ([device userInterfaceIdiom] != UIUserInterfaceIdiomPad){
authVc = [[SFAuthorizingViewControlleralloc] initWithNibName:@"SFAuthorizingViewControlleriPhone"bundle:nil];
} else {
authVc = [[SFAuthorizingViewControlleralloc] initWithNibName:@"SFAuthorizingViewControlleriPad"bundle:nil];
}
Thanks !!
Gaurav, i did something else.
Just after you clone de github.
All Answers
Yes, it's handled via AppDelegate now.
The last comment on this thread explains what all you'll need to do - http://stackoverflow.com/questions/12372289/can-anyone-help-me-setting-up-the-salesforce-mobile-sdk-for-ios
Hope this helps.
Regards,
Gaurav
Gaurav, i did something else.
Just after you clone de github.