iphone - Why is my ScrollView code not displaying? -
iphone - Why is my ScrollView code not displaying? -
i have copied files across 1 project another. code displays view can scroll horizontally between items, , scroll downwards each item.
the code in project mainwindow.xib , relevant name in plist file.
i'm putting code empty opengl es project has no nib info in plist file, , 2 nib files called "projectnameviewcontroller_iphone.xib" , "projectnameviewcontroller_ipad.xib"
when run program, none of code displays. have feeling problem lies adding subviews view controller, , calling line:
- (id)initwithpagenumber:(int)page { if (self = [super initwithnibname:@"myview" bundle:nil]) { pagenumber = page; [self.view addsubview:newsitem]; } homecoming self; }
first of all, it's odd me string here "myview" , not "mainwindow" there nil in project called "myview" (i've searched project directory , code beingness called)
but getting point, new code in open gl es project this:
- (id)initwithpagenumber:(int)page { if (self = [super initwithnibname:@"integrationtestviewcontroller_iphone" bundle:nil]) { pagenumber = page; [self.view addsubview:newsitem]; } homecoming self; }
i set in check later ipad users etc.. if string else, code breaks when other parts seek access classes view doesn't exist, nil displays.
what not understanding? (i'm quite new ios / objective-c)
check outlets mad projectnameviewcontroller_iphone.xib , file's owner class.
iphone objective-c ios xcode
Comments
Post a Comment