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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T10:58:12+00:00 2026-05-13T10:58:12+00:00

I have a method SetBallVisibility declared in the interface for my view controller. However,

  • 0

I have a method SetBallVisibility declared in the interface for my view controller.

However, I get an undeclared identifier error when I try to use this in the implementation. What I am I doing wrong?

Interface

@interface TimeFrameController : UIViewController {
    
    IBOutlet UILabel *lblTime;
    IBOutlet UIButton *btnTimeoutOrRunning;
    IBOutlet UILabel *lblMessage;
    IBOutlet UIButton *btnNextVisit;
    
    IBOutlet UIImage *picRed;
    IBOutlet UIImage *picYellow;
    
    IBOutlet UIButton *btnRed;
    IBOutlet UIButton *btnYellow;
    
    IBOutlet UIButton *btnChangePlayer;
    
    IBOutlet UIButton *btnFrameOver;
    
    NSString *Player1Name;
    NSString *ActivePlayer;
    NSString *Player2Name;
    
    NSString *Player1Col;
    NSString *Player2Col;
    
    NSString *ActivePlayerCol;
                        
    NSTimer *StopClock;
    
    int *StopClockOffset;
    int *StopClockPos;
    
    int *Player1Visits;
    int *Player2Visits;
}   

@property (nonatomic, retain) IBOutlet UILabel *lblTime;
@property (nonatomic, retain) IBOutlet UILabel *lblMessage;
@property (nonatomic, retain) IBOutlet UIButton *btnTimeoutOrRunning;
@property (nonatomic, retain) IBOutlet UIImage *picRed;
@property (nonatomic, retain) IBOutlet UIImage *picYellow;
@property (nonatomic, retain) IBOutlet UIButton *btnYellow;
@property (nonatomic, retain) IBOutlet UIButton *btnRed;
@property (nonatomic, retain) IBOutlet UIButton *btnChangePlayer;
@property (nonatomic, copy) NSString *Player1Name;
@property (nonatomic, copy) NSString *Player2Name;
@property (nonatomic, copy) NSString *Player1Col;
@property (nonatomic, copy) NSString *Player2Col;
@property (nonatomic, copy) NSString *ActivePlayer;
@property (nonatomic, retain) IBOutlet UIButton *btnNextVisit;
@property (nonatomic, retain) IBOutlet UIButton *btnFrameOver;

//@property (nonatomic, retain) NSTimer *StopClock;

bool *ColoursPicked;

//NSString *ActivePlayer;
NSString *ActivePlayerCol;

- (void)SetBallVisibility;
- (IBAction)NextVisitPressed:(id)sender;
- (IBAction)TimeOutOrRunningPressed:(id)sender;
-(void)StartStopClock:(int)nOffSet;
- (IBAction)ChangePlayer:(id)sender;
- (IBAction)YellowPressed:(id)sender;
- (IBAction)RedPressed:(id)sender;
@end

Implementation

#import "TimeFrameController.h"

@implementation TimeFrameController
@synthesize lblTime;
//@synthesize StopClock;
@synthesize btnTimeoutOrRunning;
@synthesize picRed;
@synthesize picYellow;
@synthesize lblMessage;
@synthesize Player1Name;
@synthesize ActivePlayer;
@synthesize Player2Name;
@synthesize btnRed;
@synthesize btnYellow;
@synthesize Player1Col;
@synthesize Player2Col;
@synthesize btnNextVisit;
@synthesize btnChangePlayer;
@synthesize btnFrameOver;


- (void)updateCounter:(NSTimer *)theTimer {

}

-(void) StartStopClock:(int)nOffSet{    
.....
}

- (IBAction)NextVisitPressed:(id)sender{
....    
    [SetBallVisibility];
.....   
}


- (void)SetBallVisibility{
    if ((Player1Visits > 1) && (Player2Visits > 1))
    {
    }
}

Cheers

Paul

  • 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-13T10:58:13+00:00Added an answer on May 13, 2026 at 10:58 am

    You have to use

    [self SetBallVisibility];
    

    A message (=a method call) in Objective-C is always sent to an object, this goes too to methods from the same class.

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

Sidebar

Ask A Question

Stats

  • Questions 296k
  • Answers 296k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer Since you used border-collapse on the table, you can achieve… May 13, 2026 at 7:07 pm
  • Editorial Team
    Editorial Team added an answer Is ID always guaranteed to be a number? If yes,… May 13, 2026 at 7:07 pm
  • Editorial Team
    Editorial Team added an answer >>>> l = [(1,2), (3,4)] >>>> for i, e in… May 13, 2026 at 7:07 pm

Related Questions

I have a method which takes params object[] such as: void Foo(params object[] items)
I have a method that where I want to redirect the user back to
I have a method in my Python code that returns a tuple - a
I have a method that can return either a single object or a collection
I have a method in .NET (C#) which returns string[][] . When using RegAsm

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

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.