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

  • Home
  • SEARCH
  • 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 8392253
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T19:28:17+00:00 2026-06-09T19:28:17+00:00

My app keeps coming up with a Semantic Error and keeps freezing/crashing.Everything seems to

  • 0

My app keeps coming up with a “Semantic Error” and keeps freezing/crashing.Everything seems to be stringed together fine and it launches without problem. TextFields work fine but as soon as I click anything else it fails and forces out. Any recommendations?

h.

@interface ViewController : UIViewController {
    IBOutlet UITextField *buy1;
    IBOutlet UITextField *sell1;
    IBOutlet UILabel *percentage1;
    IBOutlet UILabel *profit1;
    IBOutlet UITextField *royalty;
    IBOutlet UITextField *buy2;
    IBOutlet UILabel *sell2;
    IBOutlet UITextField *percentage2;
    IBOutlet UILabel *profit2;

}
@property (weak, nonatomic) IBOutlet UITextField *buytext1;
@property (weak, nonatomic) IBOutlet UITextField *selltext1;
@property (weak, nonatomic) IBOutlet UILabel *percentage1;
@property (weak, nonatomic) IBOutlet UILabel *profit1;
@property (weak, nonatomic) IBOutlet UITextField *royalty;
@property (weak, nonatomic) IBOutlet UITextField *buytext2;
@property (weak, nonatomic) IBOutlet UILabel *sell2;
@property (weak, nonatomic) IBOutlet UITextField *percentagetext2;
@property (weak, nonatomic) IBOutlet UILabel *profit2;

-(IBAction)Button;

- (IBAction)backgroundTouched:(id)sender;

- (IBAction)textfieldReturn:(id)sender;

@end

m.

@implementation ViewController
        //This is where I keep getting the Semantic Error "Incomplete Implementation"
@synthesize buytext1;
@synthesize selltext1;
@synthesize buytext2;
@synthesize percentagetext2;

- (IBAction)backgroundTouched:(id)sender {
    [buy1 resignFirstResponder];
    [sell1 resignFirstResponder];
    [buy2 resignFirstResponder];
    [percentage2 resignFirstResponder];

}

    - (IBAction)textFieldReturn:(id)sender {
        [buy1 resignFirstResponder];
        [sell1 resignFirstResponder];
        [buy2 resignFirstResponder];
        [percentage2 resignFirstResponder];

}



int VarBuy1 = 0;
int VarSell1 = 0;
int VarProfit1 =0;
int VarPercentage1 =0;
int VarRoyalty = 0;
int VarBuy2 = 0;
int VarSell2 = 0;
int VarProfit2 =0;
int VarPercentage2 =0;


-(IBAction)Button{
    VarBuy1 = ([buy1.text intValue]);
    VarSell1 = ([sell1.text intValue]);

    VarProfit1 = (VarSell1 - (VarSell1 * (VarRoyalty / 100)) - VarBuy1);
    VarPercentage1 = (VarProfit1 / VarSell1);
    VarSell2 = (VarBuy2 / ((100 - VarRoyalty) / 100 - VarPercentage2));
    VarProfit2 = (VarSell2 - (VarSell2 * VarRoyalty) - VarBuy2);

    profit1.text = [[NSNumber numberWithInt:VarProfit1] stringValue];
    percentage1.text = [[NSNumber numberWithInt:VarPercentage1] stringValue];
    sell2.text = [[NSNumber numberWithInt:VarSell2] stringValue];
    profit2.text = [[NSNumber numberWithInt:VarProfit2] stringValue];
}

@end
  • 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-09T19:28:18+00:00Added an answer on June 9, 2026 at 7:28 pm

    In .h

    - (IBAction)textfieldReturn:(id)sender;
    

    In .m

    - (IBAction)textFieldReturn:(id)sender
    

    Be careful about letter cases. field and Field.

    And an IBAction without (id)sender doesn’t sound good.

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

Sidebar

Related Questions

Im not sure why, but my app all of a sudden keeps force closing
I keep getting this error when using django templates in Google App Engine: TemplateSyntaxError:
I keep getting this error when I run my web app (asp.net mvc) in
I have a rails app that is working fine except for one thing. When
Am coming back to building a FB app after some time away from the
So I have a problem...I am separating concerns in my web app: HTML in
I have been dancing around this issue for awhile but it keeps coming up.
This seems to keep coming up for me on various projects and I'm wondering
Im designing my first android application and keep coming up with the following error
My app keeps track of the state of about 1000 objects. Those objects are

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.