iphone - Why am i getting a black frame and not the picker? -


i have simple code or @ least think it's simple.

// implement loadview create view hierarchy programmatically, without using nib. - (void)loadview {   cgrect rect = cgrectmake(0.0f, 20.0f, 320.0f, 216.0f);   uipickerview *mypickerview = [[uipickerview alloc] initwithframe:rect];   self.view = mypickerview; [mypickerview release]; } 

i running general view based template xcode. can see loadview getting called black frame instead of uipickerview.

what doing wrong ?

/donnib

have implemented picker's datasource methods? need otherwise won't show.

link apple documentation here: http://developer.apple.com/library/ios/#documentation/iphone/reference/uipickerviewdatasource_protocol/reference/reference.html#//apple_ref/occ/intf/uipickerviewdatasource


Comments

Popular posts from this blog

apache - Add omitted ? to URLs -

redirect - bbPress Forum - rewrite to wwww.mysite prohibits login -

php - How can I stop spam on my custom forum/blog? -