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 9102971
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T01:30:57+00:00 2026-06-17T01:30:57+00:00

I have created a my own custom cell in a nib file and I

  • 0

I have created a my own custom cell in a nib file and I am receiving an error I don’t understand.

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

In this line I receive there error No visible @interface for "LeadCell" declares the selector presentViewController:animated:completion:
LeadCell is the name of the controller for the custom. I would like to create an action where the user clicks the button and it opens a mail composer view to send an email.

Any clarity would be appreciated.

  • 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-17T01:30:59+00:00Added an answer on June 17, 2026 at 1:30 am

    A clean way to solve this problem would be to store the view controller with your custom cell, like this:

    @interface LeadCell {
        __weak UIViewController *ctrl;
    }
    -(id)initWithViewController:(UIViewController*)c;
    ...
    @end
    
    @implementation LeadCell
    
    -(id)initWithViewController:(UIViewController*)c {
        if (self = [super init]) {
            ctlr = c;
        }
        return self;
    }
    
    @end
    

    When you create new cells in your “cell for row at index path”, pass the view controller to the initializer of the cell. This way, the cell would be able to “find” the controller, letting you code your action by using ctrl instead of self:

    [ctrl presentViewController:_myMail animated:YES completion:nil];
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have created a custom cell with its own .m, .h and .xib file.
So, I have created my own custom GIFView component to show animated GIFs. My
I have created a custom list view, each row has it's own custom selector,
I have created my own custom role provider class SGI_RoleProvider and configured properly. Everything
I have created a custom list view and created my own adapter class I
I've created my own custom Table View Cell comprising of a number, an image
I have created an installer using my own custom dialogs, however I am now
I'm creating a custom media center wordpress website. I have created my own gallery,
I have created my own custom Linked List (code is below). Now, I can't
I've created my own (custom) Dialog. But would like to have its style like

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.