i am doing an apps which i need to call nsobject class in a view controller class, i try a couple method but its not working either i get a sigabrt error or the apps crash.
please help me.
I’m lost for days now.
any one have a sample code for calling nsobject from view controller?
thanks in advance for you kind help.
#import <UIKit/UIKit.h>
@interface ViewController : UIViewController
-(IBAction)firstButton;
@end
#import <UIKit/UIKit.h>
@interface TutoAppDelegate : NSObject <UIApplicationDelegate> {
UIWindow *window;
UINavigationController *navigationController;
UIButton *firstButton;
}
@property (nonatomic, retain) IBOutlet UIWindow *window;
@property (nonatomic, retain) IBOutlet UINavigationController *navigationController;
@property (nonatomic, retain) IBOutlet UIButton *firstButton;
@end
Please post some code where we can provide the correct solution. Even I don’t get problem exactly but if you want to call class object then do the following.