iphone - Adding a custom subview on UIScrollView activates subview's viewDidLoad but a blank view appears instead of the subview -


if change color of uiscrollview, add buttons around or whatever, it's active. nevertheless, can't see of added subview (who's viewdidload got called , nslogged).

relevant code:

linetime *controller = [viewcontrollers objectatindex:page]; if ((nsnull *)controller == [nsnull null]) {     controller = [[linetime alloc] initwithpagenumber:page];     [viewcontrollers replaceobjectatindex:page withobject:controller];     [controller release]; }  // add controller's view scroll view if (controller.view.superview == nil) {   //nslog(@"i'm ok");   nslog(@"%d page", page);     cgrect frame = scrollview.frame;     frame.origin.x = frame.size.width * page;     frame.origin.y = 0;     controller.view.frame = frame;     [self.scrollview addsubview:controller.view];      controller.resultarray = timesarray;     controller.alternatesarray = alternatesarray; } 

basiclly taken apple's example code, merging app's code failed. , ideas?


Comments

Popular posts from this blog

asp.net - repeatedly call AddImageUrl(url) to assemble pdf document -

java - Android recognize cell phone with keyboard or not? -

iphone - How would you achieve a LED Scrolling effect? -