मुझे एक्सकोड 4.3 के तहत अपना ऐप चलाने पर उपर्युक्त विषय पंक्ति में चेतावनी मिल रही है।विभिन्न प्रकार के 'UIBarButtonItemStyle' के लिए गणना प्रकार 'UIBarButtonSystemItem' से लागू रूपांतरण - आईपैड - आईओएस 5
UINavigationController *navigationController = [[UINavigationController alloc] initWithRootViewController:map];
UIBarButtonItem *rightButton = [[UIBarButtonItem alloc] initWithTitle:@"Done"
style:UIBarButtonSystemItemDone target:self action:@selector(removeCurrent)];
map.navigationItem.rightBarButtonItem = rightButton;
[self presentModalViewController:navigationController animated:YES];
किसी को भी मदद कर सकते हैं:
यहाँ अपमानजनक कोड नहीं है?
धन्यवाद!
+1, बिल्कुल सही जवाब। –
इस लिंक को पूरा करने के लिए उत्तर दें। [शैली UIBarButtonItemStyle में परिभाषित स्थिरांक में से एक होना चाहिए] (http://developer.apple.com/library/ios/#documentation/uikit/reference/UIBarButtonItem_Class/Reference/Reference.html) और [UIBarButtonItemStyle typedef] (http: //developer.apple.com/library/ios/#documentation/uikit/reference/UIBarButtonItem_Class/Reference/Reference.html) –