I have a reasonable amount of experience with C++ and Java, but I'm almost entirely new to iOS/Objective-C, so go easy on me.
I'm working on a very basic iPad application. I made a storyboard UIViewController with a couple of text fields and an image. My header file looks like this:
and my .m file looks like this:
I expected this to display the image and text fields I'd created in my storyboard, but when I run the simulation, I just get a blank white screen. As far as I can tell, I linked all of my outlets to the view correctly, so I'm not sure what's wrong with this. Any help would be appreciated.
edit: the "loaded!" thing was a debug print statement I put in. It is not being printed, so it seems that my method isn't being accessed at all. Why might this be?
I'm working on a very basic iPad application. I made a storyboard UIViewController with a couple of text fields and an image. My header file looks like this:
Code:
#import <UIKit/UIKit.h>
@interface FirstViewController : UIViewController{
IBOutlet UITextView *directions;
IBOutlet UITextView *equipment;
IBOutlet UITextView *setup;
IBOutlet UIImageView *tugPic;
}
@end
Code:
#import "FirstViewController.h"
@implementation FirstViewController
-(void)viewDidLoad{
if(self){
directions.hidden = NO;
equipment.hidden = NO;
setup.hidden = NO;
tugPic.hidden = NO;
NSLog(@"Loaded!");
}
}
@end
edit: the "loaded!" thing was a debug print statement I put in. It is not being printed, so it seems that my method isn't being accessed at all. Why might this be?
Last edited: