This is extremely silly, but I can't figure out how to use an NSString in my iPhone app musings.
I haven't imported anything special (just stdio.h). When I tried declaring:
NSString *test = @"Hello World"
and compiled, I get the error: 'NSString undeclared'
How do I fix this? Also, when I try adding
#import <Foundation/Foundation.h>
I get 3951 build errors.
I haven't imported anything special (just stdio.h).
You should #import <Foundation/Foundation.h>
You Application should be of type Foundation
You need to import Foundation.h. You probably don't need or want stdio.h.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With