In iphone, we face problem to show activity on view,
i think, this is because activity show after completing the method in which statement of start Animating written. but after completing there is no need to display activity.
there is solution for it, like as below:
Create a function as
-(void)StartActivity
{
NSAutoreleasePool *pool=[[NSAutoreleasePool alloc]init];
[activity setHidden:NO];
[activity startAnimating];
[pool release];
}
and call as follows statement in place of calling start Animating.
[self performSelectorInBackground:@selector(StartActivity) withObject:nil];
kamal mittal
No comments:
Post a Comment