How to create a custom Activity Indicator in Xcode [duplicate]
i need a know how to create a custom activity Indicator in xcode, i tired of searching in websites, i didn find anything about it.Please help meee...
The activity indicator is just an image view with an image sequence animation. To make your own make still pictures of each frame of your activity indicator animation and use code like this:
UIImageView *customActivityIndicator = [[UIImageView alloc] initWithFrame:CGRectMake(...)];
customActivityIndicator.animationImages = [NSArray arrayWithObjects:[UIImage imageNamed:@"frame1.png"],[UIImage imageNamed:@"frame2.png"],[etc...],[etc...],nil];
customActivityIndicator.animationDuration = 1.0; // in seconds
customActivityIndicator.animationRepeatCount = 0; // sets to loop
[customActivityIndicator startAnimating]; // starts animating
[customActivityIndicator stopAnimating]; //stops animating
What are you calling custom activity Indicator ? it could be just an icon...
精彩评论