Hi, I'm a beginner for coding and what I'm trying to do is extremely simple:
Hit the bottom to display an image, I know my codes will look stupid, but pls
help me improving, thank you all in advance:
#import "MainView.h"
@implementation MainView;
-(void)awakeFromNib;
{
UIImage *sampleimage = [[UIImage imageNamed
"box.jpg"] retain];
pic = [[UIImageView alloc]init];
pic.image = sampleimage;
[sampleimage release];
[pic release];
-(IBAction)hit;
{
[pic awakeFromNib];
}
@end
Hit the bottom to display an image, I know my codes will look stupid, but pls
help me improving, thank you all in advance:
#import "MainView.h"
@implementation MainView;
-(void)awakeFromNib;
{
UIImage *sampleimage = [[UIImage imageNamed
pic = [[UIImageView alloc]init];
pic.image = sampleimage;
[sampleimage release];
[pic release];
-(IBAction)hit;
{
[pic awakeFromNib];
}
@end