The selectedImage on a tab bar item is replaced by system
| Originator: | jakarmy | ||
| Number: | rdar://18500805 | Date Originated: | 30-Sep-2014 12:33 PM |
| Status: | Open | Resolved: | |
| Product: | iOS | Product Version: | iOS 8.0.2 [12A405] |
| Classification: | UI/Usability | Reproducible: | Always |
Summary: The selectedImage property on a tab bar item is replaced with a default blue color image after a modal view has been presented and dismissed. Steps to Reproduce: 01. Create a new storyboard 02. In the Storyboard, create a Tab Bar Controller with two child view controllers 03. In the Storyboard, set an image on the TabBar Item of the first child view controller 04. In the Storyboard, place a button inside the first child view controller's view 05. In the Storyboard, drag another view controller to an empty space, and add a button to its view 06. In the Storyboard, ctrl-drag the button on the first child view controller's view to the First Child View Controller class, and create an IBAction. 07. In the Storyboard, ctrl-drag the button on the last view controller added, to create an IBAction 08. In the first child view controller viewDidLoad method, set the tab bar item selectedImage to another image 09. In the first child view controller IBAction method, perform a segue to modally present the last view controller added to the Storyboard 10. In the last view controller IBAction method, call the dismissViewController method. 11. Launch the app in the Simulator or on the Device Expected Results: After dismissing the modally presented view controller, the same selectedImage should be present at the currently selected tab bar item. Actual Results: After dismissing the modally presented view controller, the selectedImage is replaced with a blue color. Version: iOS 8.0.2 [12A405] Notes: The attachment contains three images that show the initial state of the selectedImage, the modally presented view and the final state of the selectedImage after dismissing the modal view. Configuration: iPhone 5 16GB
Comments
Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!