Jun 16, 2025
Оfftopic Community
Оfftopic Community
Forums
New posts
Search forums
What's new
Featured content
New posts
New media
New media comments
New resources
New profile posts
Latest activity
Media
New media
New comments
Search media
Resources
Latest reviews
Search resources
Members
Current visitors
New profile posts
Search profile posts
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Menu
Log in
Register
Install the app
Install
Forums
Mobile
Phones
IPhone
Iphone sdk error help please i beg you?
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="illyjoe" data-source="post: 2186568" data-attributes="member: 771473"><p>Im working on a music app and right now im having troubles with the switching view. (running XCode 3.2.2 and mac os x snow leopard) ok here is what im having trouble with.. when u open the app it starts out with a main menu and button u click button it opens another view then it has 2 buttons as of now if u click one of em it opens another view withs buttons that make sound. If u click the other one it should open another view. when u get to that view there is a button that says other menu but in the code im having errors this is the FourthViewController and is trying to go back to the SecondViecontroller my code is this in the .h the errors are right at</p><p></p><p>IBOutlet SecondViewcontroller *secondViewcontroller; </p><p></p><p>my errors say...</p><p></p><p> error: expected specifier-qualifier-list before 'SecondViewcontroller'</p><p>error: expected specifier-qualifier-list before 'SecondViewcontroller'</p><p>error: expected specifier-qualifier-list before 'SecondViewcontroller'</p><p></p><p>yes it has 3 of the same error in the .h my code is</p><p></p><p></p><p></p><p>#import <UIKit/UIKit.h></p><p>#import "SecondViewcontroller.h"</p><p></p><p></p><p>@interface FourthViewController : UIViewController {</p><p></p><p></p><p>IBOutlet SecondViewcontroller *secondViewcontroller;</p><p></p><p>}</p><p></p><p>and in my .m</p><p></p><p>#import "FourthViewController.h"</p><p>#import "SecondViewcontroller.h"</p><p></p><p></p><p>@implementation FourthViewController</p><p></p><p>- (IBAction)goToSecondView{</p><p></p><p>[self presentModalViewController:secondViewcontroller animated:YES];</p><p></p><p>}</p><p></p><p></p><p>Thanks!!</p></blockquote><p></p>
[QUOTE="illyjoe, post: 2186568, member: 771473"] Im working on a music app and right now im having troubles with the switching view. (running XCode 3.2.2 and mac os x snow leopard) ok here is what im having trouble with.. when u open the app it starts out with a main menu and button u click button it opens another view then it has 2 buttons as of now if u click one of em it opens another view withs buttons that make sound. If u click the other one it should open another view. when u get to that view there is a button that says other menu but in the code im having errors this is the FourthViewController and is trying to go back to the SecondViecontroller my code is this in the .h the errors are right at IBOutlet SecondViewcontroller *secondViewcontroller; my errors say... error: expected specifier-qualifier-list before 'SecondViewcontroller' error: expected specifier-qualifier-list before 'SecondViewcontroller' error: expected specifier-qualifier-list before 'SecondViewcontroller' yes it has 3 of the same error in the .h my code is #import <UIKit/UIKit.h> #import "SecondViewcontroller.h" @interface FourthViewController : UIViewController { IBOutlet SecondViewcontroller *secondViewcontroller; } and in my .m #import "FourthViewController.h" #import "SecondViewcontroller.h" @implementation FourthViewController - (IBAction)goToSecondView{ [self presentModalViewController:secondViewcontroller animated:YES]; } Thanks!! [/QUOTE]
Insert quotes…
Name
Verification
Please enable JavaScript to continue.
Loading…
Post reply
Top