Up vote 0 down vote favorite share g+ share fb share tw.
I try to explain my problem by my easy english (sry but i'm italian :P) I have a planimetry in which I wish, if a user touches a room, popover is shown and it contains a TabBarController. Now, with this code: - (void) showPopover:(PathArea*) path withPoint:(CGPoint) point { MenuPopOver* menu = MenuPopOver alloc init; UIPopoverController* popOver = UIPopoverController alloc initWithContentViewController:menu; popOver setDelegate:self; CGRect bound = CGRectMake(point. X, point.
Y, 5, 5); popOver presentPopoverFromRect:bound inView:self permittedArrowDirections:UIPopoverArrowDirectionAny animated:YES; menu release; } i'm able to show a Popover that contains a simple view with 'HELLO' Label. But, when I try to insert a TabBarController in which I set nibname of 2 view controllers for calling their views, nothing happens. In details, I created, in addition to other classes that I have in my project, 3 UIViewController classes: MenuPopOver, FirstViewController, Second2ViewController.
In First / Second ViewController I created a simple TextView only for testing them. In the MenuPopOver. Xib, I set, for the first view, nibname:FirstViewController, and for the second view, nibname:SecondViewController.
Now, if I run application, an error occurs because I didn't set an Outlet for MenuPopOver. Ok! But... what?
Outlet comes from firstviewcontroller and secondviewcontroller! So I thought it had to be unset! I'm confused.
So, for test, I try to set as Outlet "view --> TabBar" ( hoping that views were loading from first and second view controller ), but.... tabbar is shown without anything! There is only a toolbar with 2 default tab button (item1, item2) and nothing in the linked view. I didn't use 'delegate'.
So, the question is simple.... how do I have to implement a tab bar controller in a popover or, in general, in a view?! Thx much ios ipad interface-builder uitabbarcontroller uipopovercontroller link|improve this question asked Sep 22 '11 at 4:24kinghomer657 55% accept rate.
Try MenuPopOver* menu = MenuPopOver alloc initWithNibName:@"ur nibname"; – AppleVijay Sep 22 '11 at 16:30 But nibnames are two! Maybe I have to override method with 2nibname? – kinghomer Sep 22 '11 at 16:35 first checkout is that works then.... – AppleVijay Sep 22 '11 at 16:38 Ok.
View1 is shown inside, but only view. No Bar no tab bar button. Simply FirstView – kinghomer Sep 22 '11 at 17:08 Well, if I set MenuPopOver.
ViewControllers = NSArray arrayWithObjects:menu1, menu2, nil; it works! But it's all by code! MenuPopOver.
Xib isn't seen. Mah! I'll do by code for now – kinghomer Sep 22 '11 at 17:28.
I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.