मेरे पास एक है UIButton, जिसे दबाने पर एक नया दृश्य सामने आता है जहां उपयोगकर्ता कुछ सेटिंग्स बदल सकता है। जब दृश्य खारिज हो जाता है, तो मैं UIButtonनए राज्य को प्रतिबिंबित करने के लिए शीर्षक / पाठ को अपडेट करना चाहूंगा । मै कॉल कर रहा हूँ:
[myButton setTitle: @"myTitle" forState: UIControlStateNormal];
[myButton setTitle: @"myTitle" forState: UIControlStateApplication];
[myButton setTitle: @"myTitle" forState: UIControlStateHighlighted];
[myButton setTitle: @"myTitle" forState: UIControlStateReserved];
[myButton setTitle: @"myTitle" forState: UIControlStateSelected];
[myButton setTitle: @"myTitle" forState: UIControlStateDisabled];
लेकिन यह मूल पाठ / शीर्षक से बदलने के लिए कभी नहीं जैसा कि आईबी में निर्दिष्ट है।