Is there an easy way to display a waiting animation in the iPhone SDK? I have a screen that will take a few seconds to load, and I am giving some feedback to the user, whatever is happening. Any suggestions?
[[UIApplication shared application] setNetworkActivityIndicatorVisible: Yes]; or
[[UIApplication ShareApp] Set NetworkEctiveIndicatorVijay: no]; Edit: Found in an old project, the customer requested an indicator with better visibility: - (zero) invokeMegaAnnoyingPopup {self.megaAlert = [[[UIAlertView alloc] initWithTitle: @ "Please Wait ..." Message: Zero Representative: Cancel YourselfTuttonal: Any Other Buttats: Zero] AutoWrecks]; [Self. Mega Alert Show]; UIActivityIndicatorView * Notifier = [[UIActivityIndicatorView alloc] initWithActivityIndicatorStyle: UIActivityIndicatorViewStyleWhiteLarge]; Indicator.center = CGExMake (Automatic MegualrT.boundsSize.width / 2, auto.magualart.boundsskies.high-45); [Indicator initialization]; [Self. MegAlt ed sbueview: pointer]; [Indicator release]; } - (Zero) Dismiss Megaannningspop {{Self. Mega Artist Dismiss WithClead Button Indexes: 0 Animated: Yes]; Self.megaAlert = Zero; }
You must have a UIAlertView * megautrate; must be defined in its class.
Comments
Post a Comment