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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 18, 20262026-05-18T20:27:57+00:00 2026-05-18T20:27:57+00:00

(newbie Q, asking after a full day research) Kindly help, where am I going

  • 0

(newbie Q, asking after a full day research)

Kindly help, where am I going wrong :

I can set an UIImageView property successfully from viewDidLoad : [TodayMark setHidden:YES];

But it does not work when I put it in aother instance method (in the same class) and call that method from viewDidLoad.

The method itself is getting called fine but only the property does not get set and I get no error or warning !

-(void)viewDidLoad {
  ...
        [TodayMark setHidden:NO];    // This is working fine

        //calling the instance method

    myClass *test = [[myClass alloc] init];
    [test WeekName]; 

}

-(void)WeekName{

    NSLog(@"---test call---");  // getting printed in the consol
    [TodayMark setHidden:YES];

}
  • 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-05-18T20:27:58+00:00Added an answer on May 18, 2026 at 8:27 pm

    Use self, and you do not need to alloc/init a new instance there, just use self and everything will be groovy.

    -(void) viewDidLoad {
        //...
        [TodayMark setHidden:NO];
        [self WeekName]; 
    }
    

    And…

    -(void) WeekName {
        NSLog(@"---test call---");
        [TodayMark setHidden:YES];
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

(newbie Q, asking after a full day research) Kindly help, where am I going
After asking this perl newbie question , I have a perl newbie follow-up. I
Newbie asking for help: I have an array of numbers that needs to be
iam newbie here.. please execuse if iam asking wrong question here. iam developing dynamic
I am asking a very naive and newbie question. Can anybody please tell me
newbie here, so thanks in advance for help! I have a Wordpress site with
Im a newbie in android development and thats why im asking you experts such
I'm a newbie to rails, and I have researched a whole day. I think
I'm newbie on Smalltalk. I'm going to try Seaside framework. And Pharo seems best
Sorry for asking such a newbie question, I know it makes a few of

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.