Spike099
Mar 28, 2008, 12:35 AM
What was once working code, is now not compiling. In my interface file I have a simple declaration as follows:
UIToolbarController *toolbarController;
That come up as an error "syntax error before 'UIToolbarController'"
When I remove that declaration, the error goes away... However I needed that toolbar. If I declare the tool bar in my loadView method like so
UIToolbarController *toolbarController = [[UIToolbarController alloc] init];
The following errors appear.
'UIToolbarController' undeclared (first use in this function)
'toolbarController' undeclared (first use in this function)
Something else that broke. I have a navigation bar with it's style set to UIBarStyleRed. But the following error comes up now.
error: 'UIBarStyleRed' undeclared
The other styles work fine. Although I like the black style better now. :)
Anyone else experiencing issues?
UIToolbarController *toolbarController;
That come up as an error "syntax error before 'UIToolbarController'"
When I remove that declaration, the error goes away... However I needed that toolbar. If I declare the tool bar in my loadView method like so
UIToolbarController *toolbarController = [[UIToolbarController alloc] init];
The following errors appear.
'UIToolbarController' undeclared (first use in this function)
'toolbarController' undeclared (first use in this function)
Something else that broke. I have a navigation bar with it's style set to UIBarStyleRed. But the following error comes up now.
error: 'UIBarStyleRed' undeclared
The other styles work fine. Although I like the black style better now. :)
Anyone else experiencing issues?
