Alloc previewcurrentPreview and then, previewcurrentPreview. Frame = CGRectMake(0, 320, 480, 320); UIImage *img = UIImage imageNamed:@"guy. Png"; previewcurrentPreview.
Image = UIImageView alloc initWithImage:img; self addSubViews:previewcurrentPreview. Image; self. View addSubViews:previewcurrentPreview.
Image; EDIT: more code: #define kNumberOfLevels 30 @implementation Chooser @synthesize levelInput, completedLevels; @synthesize btnInputGo, btnMenu, btnRight, btnLeft; int currentPreview; UIImageView *previewkNumberOfLevels; - (void)main { //NSString *imageName = NSString stringWithFormat:@"guy. Png";//@"levelPreview%i", currentPreview; previewcurrentPreview. Frame = CGRectMake(0, 320, 480, 320); UIImage *img = UIImage imageNamed:@"guy.
Png"; previewcurrentPreview. Image = UIImageView alloc initWithImage:img; //self addSubViews:previewcurrentPreview. Image; self.
View addSubViews:previewcurrentPreview; } - (void)viewDidLoad { super viewDidLoad; NSTimer scheduledTimerWithTimeInterval:0.05 target:self selector:@selector (main) userInfo:nil repeats:YES; currentLevel = 1; currentPreview = 1; for (int I = 1; I.
No, still nothing. I presume you have to allocate memory for it though? Thats what I thaught... – Conor Taylor Apr 25 at 12:06 No, and adding subviews spit out a SIGABRT and crashed the app?
– Conor Taylor Apr 25 at 13:04 Can you show you more code? – Stacky Apr 25 at 13:10 ok now have a look – Conor Taylor Apr 25 at 13:20 Ah I see I was adding it to the subview in the viewDidLoad and one of my methods. Thanks!
– Conor Taylor Apr 25 at 15:12.
May be, You are not adding UIImageView in your view Or Controller's view . Considering previewcurrentPreview. Image is type of UIImageView .
PreviewcurrentPreview. Frame = CGRectMake(0, 320, 480, 320); previewcurrentPreview. Image = UIImageView alloc initWithImage:UIImage imageNamed:@"guy.
Png"; self addSubView:previewcurrentPreview. Image; //Add this line if you are in UIView inherited class self. View addSubView:previewcurrentPreview.
Image; //Add this line if you are in UIViewController inherited class.
Where you want to preview your image ... – Jhaliya Apr 25 at 12:33 Class type is UIViewController, I want to see the image in the view – Conor Taylor Apr 25 at 12:36 Use self. View addSubViews:previewcurrentPreview. Image; – Jhaliya Apr 25 at 13:10 Yes I have been doing that its giving SIGABRT and the errors I listed above – Conor Taylor Apr 25 at 13:18.
I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.