Do any of you know if it is possible to cancel a viewDidAppear
?
When i load a new view, the viewDidAppear
is loading, and in that time i can't do things as switching views.
Here's the viewDidAppear
code:
- (void)viewDidAppear:(BOOL)animated{
NSURL * imageURL = [NSURL URLWithString:[NSString stringWithFormat:@"Url",Username]];
NSData * imageData = [NSData dataWithContentsOfURL:imageURL];
UIImage * image = [UIImage imageWithData:imageData];
if (image) {
UsersProfilpic.image = image;
}
imageURL = [NSURL URLWithString:[NSString stringWithFormat:@"Url",FriendsName]];
imageData = [NSData dataWithContentsOfURL:imageURL];
image = [UIImage imageWithData:imageData];
if (image) {
FriendsProfilpic.image = image;
}
}
Thanks in advance. :)