I made a simple app using the storyboard feature. I have made some UIButton
s and I want to change the background of my UIButton
s. In the storyboard the background successfully changes but in the actual iOS simulator my background does not change.
相关问题
- Core Data lightweight migration crashes after App
- How can I implement password recovery in an iPhone
- State preservation and restoration strategies with
- “Zero out” sensitive String data in Swift
- Get the NSRange for the visible text after scroll
相关文章
- 现在使用swift开发ios应用好还是swift?
- UITableView dragging distance with UIRefreshContro
- TCC __TCCAccessRequest_block_invoke
- Where does a host app handle NSExtensionContext#co
- Swift - hide pickerView after value selected
- How do you detect key up / key down events from a
- didBeginContact:(SKPhysicsContact *)contact not in
- Attempt to present UIAlertController on View Contr
Here are some suggestions for you:
If you set image programatically than check image name spelling, It should be match exactly with bundle image name(case sensitive).
You have to add two images in your bundle. e.g if image name is
nature.png
than you must have to addnature.png
andnature@2x.png
(@2x
image must have double size than normal).Although if you are using only one image for retina devices than check that you run your application in only retina devices, Sometime non-retina device won't show image.
If you set image as
UIButton
image with title than it is requited to set title and image insets, If title text is big or image size is bigger.