Прежде всего, я n00b.После долгих попыток и исследований я решил получить внешнюю помощь.Мой проект: я сделал книгу для детей.Сейчас я анализирую свой код и пытаюсь избавиться от некоторых утечек (уровень 1 + 2 Crash через некоторое время).Вот мой код
- (void)loadView {
_oben = YES;
_unten = NO;
self.view = [[UIView alloc] initWithFrame:[[UIScreen mainScreen] applicationFrame]];
UIImage *cover = [UIImage imageNamed:@"Umschlag.png"]; //Here it says "Potential leak..
//..allocated on line 141 (thats at self.view = [[UIView alloc] initWithFrame:...
image = [[UIImageView alloc] initWithImage:cover];
image.frame = CGRectMake(0, 0, 768, 1024);
[self.view addSubview:image];
[image release];
UITextView *text1 = [[UITextView alloc] initWithFrame:CGRectMake(184, 700, 400, 100)];
text1.backgroundColor = [UIColor clearColor];
text1.textAlignment = UITextAlignmentCenter;
text1.text = NSLocalizedString(@"CoverTextKey1", nil);
[self.view addSubview:text1];
[text1 release];
[self addButtonNext];
[self addSwipeDown];
[self addSwipeUp];
}
Есть идеи?Было бы здорово, если бы кто-нибудь мог мне помочь!Заранее спасибо Planky