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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T02:15:56+00:00 2026-06-16T02:15:56+00:00

I ve got a view controller . when i pass an extra object I

  • 0

I ve got a view controller . when i pass an extra object I m getting this error @No visible interface in the below function .could u help me out.below is the code.where i am passing an object of type photo ..

  ItemImageView *itemImage = [[ItemImageView alloc]initWithFrame:CGRectMake(currentPhotoPositionX,0,pageButtonWidth,pageButtonHeight) andPhoto:photo];

@ItemImageview


 - (id)initWithFrame:(CGRect)frame :andPhoto:(Photo *)photo
   {
self = [super initWithFrame:frame];
if (self) {
    // Initialization code

    //Create Activity Indicator
     activityIndicator= [[UIActivityIndicatorView alloc]initWithFrame:CGRectMake(225, 115, 30, 30)];
    [activityIndicator setBackgroundColor:[UIColor clearColor]];
    [activityIndicator setActivityIndicatorViewStyle:UIActivityIndicatorViewStyleWhite];
    [self addSubview:activityIndicator];

    //Create Label Comments

    lblComments = [[UILabel alloc] initWithFrame:CGRectMake(30.0f, 100.0f, 60.0f, 43.0f)];
    [lblComments setText:@"Comments"];
    [lblComments setBackgroundColor:[UIColor clearColor]];
    [self addSubview:lblComments];

    //Create Label Likes

    lblLikes = [[UILabel alloc] initWithFrame:CGRectMake(100.0f, 100.0f, 60.0f, 43.0f)];
    [lblLikes setText:@"Likes"];
    [lblLikes setBackgroundColor:[UIColor clearColor]];
    [self addSubview:lblLikes];


    //Create Item Button

    btnItem = [UIButton buttonWithType:UIButtonTypeRoundedRect];
    [btnItem addTarget:self
                action:@selector(:)
      forControlEvents:UIControlEventTouchUpInside];
    [btnItem setBackgroundImage:[UIImage imageNamed:@"1.png"] forState:UIControlStateNormal];
    btnItem.frame = CGRectMake(0.0f, 0.0f, 144.0f, 143.0f);
    [self addSubview:btnItem];


}

return self;

}

  • 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-16T02:15:58+00:00Added an answer on June 16, 2026 at 2:15 am

    Change it into:

    - (id)initWithFrame:(CGRect)frame andPhoto:(Photo *)photo
    

    And also remember to add it to your .h file.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I've got a Controller ActionResult that looks like this Function Edit(ByVal user As Domain.User,
I have an app that I just got setup with a split view controller
I got a view that inherits : System.Web.Mvc.ViewPage<IEnumerable<MyProjects.Models.MyAccountWrapper>> In this view I list data
I've got a view function that has to decide which form to use depending
I got a view controller class (MyViewController) that deals with a UIView subclass (MyView).
I want to pass 2 strings to the view after redirecting. the controller: def
I've got a little problemo. In my CodeIgniter Controller I'm loading the same view
I've got 2 controllers. CategoryController public function readAction() { $id = $this->_request->getParam('id'); $categoryModel =
I've got some data in a view that I would like to pass to
I got this in the controller var tobi = (from a in db.Assessments join

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.