ios-icons

How to add / use default icons to navigation bar

若如初见. 提交于 2019-12-18 19:40:26
问题 I want to use some of default iOS icons i.e. in navigation bar. Basically I don't know how to call image of that item (directly from native library - I know how to download it and place as custom image:)): var myButton:UIButton = UIButton.buttonWithType(UIButtonType.Custom) as! UIButton myButton.addTarget(self, action: "reload", forControlEvents: UIControlEvents.TouchUpInside) myButton.setImage(???, forState: <#UIControlState#>) 回答1: You can use UIBarButtonSystemItem this way: let button =

App icon of Share extension is not updating in device even with updating app icon

自古美人都是妖i 提交于 2019-12-11 03:24:47
问题 In my iOS application, I have a share extension. Initially we were using the different app icons. Later we changed the app icons for the application. The old icon has got replaced from everywhere, but for Share extension, it is not getting replaced with the new icon. Following are ways we tried out but it has not getting changed: Delete the application and reinstalling. -- Did not work Removing the derived data and rebuilding the app and reinstalling -- Did not work. If anybody has faced the

How to add / use default icons to navigation bar

十年热恋 提交于 2019-11-30 18:14:18
I want to use some of default iOS icons i.e. in navigation bar. Basically I don't know how to call image of that item (directly from native library - I know how to download it and place as custom image:)): var myButton:UIButton = UIButton.buttonWithType(UIButtonType.Custom) as! UIButton myButton.addTarget(self, action: "reload", forControlEvents: UIControlEvents.TouchUpInside) myButton.setImage(???, forState: <#UIControlState#>) You can use UIBarButtonSystemItem this way: let button = UIBarButtonItem(barButtonSystemItem: UIBarButtonSystemItem.Refresh, target: self, action: "someAction")