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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T05:26:45+00:00 2026-06-17T05:26:45+00:00

I am a student who is learning and working on an App for my

  • 0

I am a student who is learning and working on an App for my school. I have just started and am doing okay. However, I am recieveing the error “Expected identifier or ‘(‘ “. I have spent a few days now reading posts and googleing, and no solution I have found is working for me.

I am trying to make a Round Rect Button on the second tab of my application to link to the school’s website.

Here is the .h:

#import <UIKit/UIKit.h>

@interface SecondViewController : UIViewController  {

}


- (IBAction)Website:(id)sender;



 @end

and here is my .m with error commented:

#import "SecondViewController.h"

@interface SecondViewController ()

@end

@implementation SecondViewController 

-(IBAction)Website {
[[UIApplication sharedApplication ] openURL:[NSURL URLWithString:@"http://www.google.com"]];

}


{      **// Error is on this line[23]**
[super viewDidLoad];
// Do any additional setup after loading the view, typically from a nib.
}

- (void)didReceiveMemoryWarning
{
[super didReceiveMemoryWarning];
// Dispose of any resources that can be recreated.
}


- (IBAction)Website;


- (IBAction)Website:(id)sender; {
}
@end

How can I fix this little guy? Thank you very much!
Also, the .h file was formed by xCode, by simply control dragging from button, to .h and creating an action. Could this be the cause?

  • 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-17T05:26:46+00:00Added an answer on June 17, 2026 at 5:26 am

    I think you have accidentally deleted this line:

    - (void)viewDidLoad
    

    above this line

    {      **// Error is on this line[23]**
    

    but for simplicity you could delete this:

    {      **// Error is on this line[23]**
         [super viewDidLoad];
        // Do any additional setup after loading the view, typically from a nib.
     }
    

    as you are not using viewDidLoad for anything

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

Sidebar

Related Questions

I am a research student who just started the android programming for 3 weeks
there. i'm a student who start learning building an android app... i'm having difficulties
I am a co-op student who has been tasked with making an app (for
I'm an undergraduate university student who also writes iPhone applications. Next year I'm expected
Okay, so I have a client who wants to output all information for a
I am a student who is trying to make mms stream audio app. I
I have two tables. Student and Job. I need to search students who possess
Assume you know a student who wants to study Machine Learning and Natural Language
Im a final year university student who is doing a license plate recognition system
I am a student who will be using C++ next quarter. I really enjoyed

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.