popoverrr

-(IBAction)prsn_click:(id)sender

{

    NSLog(@”hello click”);

    

    [[NSNotificationCenter defaultCenter] addObserver:self

                                             selector:@selector(relod_ful:)

                                                 name:@”SecondViewControllerDismissed”

                                               object:nil];

    if (UI_USER_INTERFACE_IDIOM() ==UIUserInterfaceIdiomPhone)

    {

        view_popover *vp=[self.storyboard instantiateViewControllerWithIdentifier:@”view_popover”];

        [self presentViewController:vp animated:YES completion:nil];

        

    }

    else

UIPopoverController *po,* po1,*po2;

    {

        view_popover *vp=[self.storyboard instantiateViewControllerWithIdentifier:@”view_popover”];

        [app.po1 dismissPopoverAnimated:YES];

        app.po=[[UIPopoverController alloc]initWithContentViewController:vp];

        

        

        

        [app.po presentPopoverFromBarButtonItem:editBarButtonItem permittedArrowDirections:UIPopoverArrowDirectionAny animated:YES];

        }

   }

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s