Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8455511
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T12:18:16+00:00 2026-06-10T12:18:16+00:00

How can I create special popOver? I have manually created a new class, with

  • 0

How can I create special popOver?
I have manually created a new class, with needed design.

enter image description here

Then I want to load it like a PopOver

enter image description here

-(void) buttonAction {
UIViewController* popoverContent = [[UIViewController alloc] init];

myThirdPop * showHere;//Created class which I load as Popover
NSArray *nib = [[NSBundle mainBundle] loadNibNamed:@"myThirdPop" owner:self options:nil];
showHere = [nib objectAtIndex:0];
popoverContent.view = showHere.myView;
popoverContent.contentSizeForViewInPopover = CGSizeMake(300, 350);
popoverController = [[UIPopoverController alloc] initWithContentViewController:popoverContent];
[popoverController presentPopoverFromRect:myButton.frame inView:self.view permittedArrowDirections:UIPopoverArrowDirectionAny animated:YES];

}

But when I trying to tap the button, my app crashes with exc_bad_access
What`s wrong?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-10T12:18:18+00:00Added an answer on June 10, 2026 at 12:18 pm
    Use this code to create the popover
    
     -(IBAction)Click_event
    {      UIPopoverController *popoverview;
    if(![popoverview isPopoverVisible])
         {
      Popview *pop = [[Popview alloc] initWithNibName:@"Popview" bundle:nil];
      popoverview = [[UIPopoverController alloc] initWithContentViewController:pop];
      [popoverview setPopoverContentSize:CGSizeMake(600.0f, 500.0f)];
       [popoverview presentPopoverFromRect:CGRectMake(400, 400, 0, 0)   inView:self.Click_but  permittedArrowDirections:UIPopoverArrowDirectionUp animated:YES];
     }
    else
     {
      [popoverview dismissPopoverAnimated:YES];
     }
      }
    
      Lets try this. It may be helpful for you  
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I want to create a special class for holding a lot of values like
I can create database manually by going to cpanel. But I'd like to create
I have a website where users can create albums and then add images to
How can create a New user in ORACLE with full access (alter, delete, select,
i have a data structure like this public class Employee { public string Name
I want to create special text fields, with different background images, colors or sizes.
How can I create a PSHost that supports breakpoints/debugging in Powershell? Are there special
I'm trying to do a bbcode parser class that can create personalyzed tags, but
In Java, one can create instances of a class without actually calling a declared
Here's the deal: I have a report designer where users can create reports based

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.