0
A
回答
1
UIAlertView *alert = [[UIAlertView alloc] initWithTitle:@"Title" message:@"Message" delegate:self cancelButtonTitle:nil otherButtonTitles:nil];
UIActivityIndicatorView *progress= [[UIActivityIndicatorView alloc] initWithFrame:CGRectMake(125, 50, 30, 30)];
progress.activityIndicatorViewStyle = UIActivityIndicatorViewStyleWhiteLarge;
[alert addSubview:progress];
[progress startAnimating];
[alert show];
[progress release];
然後解除警報視圖和微調:(你需要做的警報視圖中的成員)
[alert dismissWithClickedButtonIndex:0 animated:YES];
[alert release];
1
只需撥打dismissWithClickedButtonIndex:animated:方法UIAlertView中
[alertView dismissWithClickedButtonIndex:0 animated:YES];
0
只需撥打:
[theAlertViewInstance dismissWithClickedButtonIndex: 0 animated:YES];
這應該做,你需要什麼。
相關問題
- 1. 以編程方式啓用/禁用Log4jLogger?
- 2. 以編程方式禁用麥克風
- 3. 以編程方式禁用Firefox擴展
- 4. 以編程方式禁用Spring Security
- 5. Spring Boot - 以編程方式禁用AutoConfiguration
- 6. 以編程方式禁用gif動畫
- 7. 以編程方式禁用ScollViewer滾動
- 8. 以編程方式禁用window.location.reload?
- 9. UIWebView以編程方式禁用縮放
- 10. 以編程方式禁用ipv4/ipv6
- 11. 以編程方式禁用FirebaseMessagingService
- 12. 以編程方式啓用/禁用沉浸模式
- 13. 如何以編程方式禁用com +應用程序?
- 14. 以編程方式禁用縱向方向鎖定
- 15. 以編程方式禁用Visual Studio代碼格式
- 16. 編程方式禁用屏幕超時
- 17. 編程方式禁用大寫鎖定
- 18. 如何以編程方式啓用/禁用Windows功能
- 19. 使用sharepoint webservices以編程方式禁用'必需簽出'
- 20. 在Windows 7上以編程方式啓用/禁用連接
- 21. 以編程方式啓用/禁用實體代理
- 22. 以編程方式啓用/禁用藍牙配置文件
- 23. 如何以編程方式啓用/禁用Azure功能
- 24. 以編程方式爲特定用戶角色禁用稅收
- 25. 如何以編程方式啓用/禁用IE代理設置?
- 26. 以編程方式啓用和禁用某些@ RabbitListener的Spring?
- 27. 如何以編程方式啓用/禁用移動數據
- 28. 以編程方式啓用/禁用鍵盤聲音和振動
- 29. 如何在rooted android上以編程方式禁用/啓用gps?
- 30. 是否可以通過編程方式啓用/禁用硬件?
它工作,謝謝 –