Wednesday, 15 May 2013

ipad - Converting an iphone app to universal app -



ipad - Converting an iphone app to universal app -

i have created iphone app @ begining.but want alter universal app.in converting have changed target universal.gone through google , found have create different xibs ipad.when alter universal asked me create mainwindow ipad .i clicked yes.now on application launch tabbarcontroller .so have created viewcontroller.xib ipad linked in tabbarcontroller. error [ setvalue:forundefinedkey:]: class not key value coding-compliant key delegate.

- (bool)application:(uiapplication *)application didfinishlaunchingwithoptions:(nsdictionary *)launchoptions { if (ui_user_interface_idiom() == uiuserinterfaceidiompad) { viewcontroller *first=[[viewcontroller alloc] initwithnibname:@"viewcontroller-ipad" bundle:nil] ; login *second=[[login alloc]initwithnibname:@"login" bundle:nil]; second.title=@"login"; nsarray *viewarray=[[nsarray alloc] initwithobjects: first,second,nil]; uitabbarcontroller *tabbarcontroller1=[[uitabbarcontroller alloc] init]; [tabbarcontroller1 setviewcontrollers:viewarray animated:no]; for(uiviewcontroller *tab in tabbarcontroller1.viewcontrollers) { [tab.tabbaritem settitletextattributes:[nsdictionary dictionarywithobjectsandkeys: [uifont fontwithname:@"timesnewromanps-boldmt" size:16.0], uitextattributefont, nil] forstate:uicontrolstatenormal]; } [self.window addsubview:tabbarcontroller1.view]; [self.window makekeyandvisible]; cgrect rect = [[uiscreen mainscreen] bounds]; [self.window setframe:rect]; [viewarray release]; [first release]; [second release]; homecoming yes; } else { //code load tabbarcontroller iphone xib's

where link ?i dont find outlets when click filesowner?

iphone ipad xcode4.5

No comments:

Post a Comment