UIAlertView
और UIActionSheet
में ठीक से प्रदर्शित नहीं हो रहा है IOS 8 में ठीक से प्रदर्शित नहीं हो रहा है, इसके दृश्य नियंत्रक को छुपा रहा है, यहां तक कि अलर्ट व्यू शीर्षक भी प्रदर्शित नहीं हो रहा है। मैं एक्सकोड 5.1.1 से ऐप चला रहा हूं।UIAlertView और UIActionSheet आईओएस 8
5
A
उत्तर
5
क्या आपने अपने एप्लिकेशन में व्यू कंट्रोलर के लिए कोई श्रेणी जोड़ा है। नीचे दिखाए गए
@implementation UIViewController (CustomeAction)
- (void)setTitle:(NSString *)title{
// YOU CODE///
}
@end
यह समस्या हो सकती है। मैंने इस श्रेणी को हटाकर हल किया है - (void)setTitle:(NSString *)title.
नोट: आईओएस 8 से, UIAlertViewController को UIViewController से विरासत में मिला है। यदि आप श्रेणी विधि का उपयोग करते हैं, तो यह UIAlertView & UIActionSheet शीर्षक पर प्रभावी होगा।
0
ऐसा लगता है, कि UIAlertView और UIActionSheet आईओएस 8. में पदावनत है आप बाहर this question या apple link देख सकते हैं। यह आपकी मदद करेगा।
0
पर सेब डॉक्स उल्लेख कर सकते हैं आप XCode 6 और आईओएस 8
UIAlertController * alert= [UIAlertController
alertControllerWithTitle:@"Title"
message:@"Your Message"
preferredStyle:UIAlertControllerStyleAlert];
UIAlertAction* ok = [UIAlertAction
actionWithTitle:@"OK"
style:UIAlertActionStyleDefault
handler:^(UIAlertAction * action)
{
[alert dismissViewControllerAnimated:YES completion:nil];
}];
UIAlertAction* cancel = [UIAlertAction
actionWithTitle:@"Cancel"
style:UIAlertActionStyleDefault
handler:^(UIAlertAction * action)
{
[alert dismissViewControllerAnimated:YES completion:nil];
}];
[alert addAction:ok];
[alert addAction:cancel];
[self presentViewController:alert animated:YES completion:nil];
के लिए UIAlerController का उपयोग कर ActionSheet
UIAlertController * alert= [UIAlertController
alertControllerWithTitle:@"Title"
message:@"Your Message"
preferredStyle:UIAlertControllerStyleActionSheet];
संबंधित मुद्दे
- 1. UIAlertView बनाम UIAlertController - आईओएस 8
- 2. UIAlertView आईओएस 8 में बीआईएल 5
- 3. आईओएस 8 और आईओएस 9
- 4. आईओएस 8 और आईओएस 9
- 5. आईओएस 8 और आईओएस 9
- 6. UIActionSheet
- 7. UIActionSheet
- 8. UIActionSheet
- 9. UIActionSheet
- 10. स्विफ्ट और आईओएस 8
- 11. आईओएस 8 समापन ब्लॉक
- 12. आईएपी आईओएस UIAlertView रद्द करें बटन
- 13. आईओएस 8.3 UiAlertView करीबी सेब कीबोर्ड
- 14. रद्द करें बटन और UIActionSheet
- 15. आईएसओ 7 और आईओएस 8
- 16. आईओएस 8 और एक्सकोड 6
- 17. UIALertView
- 18. UIAlertView?
- 19. UIAlertView
- 20. UIAlertView
- 21. सेटिंग्स.बंडल आईओएस आईओएस 8
- 22. UIAlertView
- 23. uialertview
- 24. UIAlertView
- 25. UIAlertView
- 26. UIAlertView
- 27. आईओएस एक अन्य
- 28. आईओएस 8
- 29. UIActionSheet iOS8
- 30. आईओएस 8
महान ... इसके ठीक काम कर रहा के लिए कोड निम्न का उपयोग कर सकते ... धन्यवाद – Surfer
आपका स्वागत है, अगर आपको शीर्षक सेट करने की आवश्यकता है तो आप UINavigationItem के लिए श्रेणी लिख सकते हैं। – Nookaraju
ठीक है। आपका बहुत बहुत धन्यवाद.. – Surfer