开发者

IOS: fill a popover with a tableview

开发者 https://www.devze.com 2023-03-09 04:47 出处:网络
How can I create a popover and fill it with a tabl开发者_JS百科eview? I have a button on a toolbar in bottom of my view, and when i push this button I want to show this popoverCreate pushviewcontrolle

How can I create a popover and fill it with a tabl开发者_JS百科eview? I have a button on a toolbar in bottom of my view, and when i push this button I want to show this popover


Create pushviewcontroller and in the pushviewcontroller you have to give the tableview. like this.

UIViewController *myPopOver = [[UIViewController alloc] initWithNibName:@"MyPopOverView" bundle:nil];
//(asper your requirement take thiscontroller as tableview)
popoverController = [[[UIPopoverController alloc] initWithContentViewController:myPopOver] retain];
0

精彩评论

暂无评论...
验证码 换一张
取 消