Xcode 5 and Images - ios

I have an app that uses button images that are being changed as the user interacts with the button.
I just converted my app to iOS7 in Xcode 5, but now my button images are not showing any more. All I see is a bright blue square where the button should be.
When I change the tint from blue to clear, the buttons show, but the button does not change when I push it.
The images are still in my supported files folder and should be properly used by Xcode...
Does anyone have a similar issue? Can this be fixed easily?

There is a new button type called UIButtonTypeSystem with iOS 7.
On your .xib file, change the button type to Custom.

Related

UIButton title issue on iPhone6 with iOS9.3.2

I created button using storyboard and set the tittle with out any underline using custom font. But i got underline under title of button in only iPhone6 with iOS 9.3.2 but not all devices. Please see the below image. I have checked all apple documents but i didn't get any solution. Is the iOS problem or iPhone problem or any settings on iPhone6 related button?
Open Setting app in your iphone, Go to general then go to accessibility, under accessibility turn off the switch for Button shapes
It may solve your problem i think. Because if you have used button with type system then it will use system's configuration for button!!

How to set font to the label in launch Screen in iOS 8

How can we set font to a label in launch Screen, i have tried of setting custom fonts through storyboards. The font is applied and seen in the storyboard but when i launch the app i am not able to see the font applied.
How to overcome this problem.
Even though it may appear like you can in Xcode 6, you can't specify a custom font for the launch screen, since the launch screen is shown before your fonts load. Create an image of your text and use that.
#kool kims,
its simple,
Directly go to LaunchScreen.xib then Select Label & Change its Property From Right side of Menu ..
//For More Click Link to See -
http://i.stack.imgur.com/nrRPM.png
You need add .xib file how Launch Screen File and add your design to it.

Back button appears with button outline

I am working on an app which supports iOS 6 to latest iOS versions. When I run the app in Xcode 5 and select target as iOS7; Sometimes the back button in navigation bar appears with the iOS6 button style as an outline around it in iOS7. I wanted to enable default feature of iOS7 that back button without outline.
other buttons look fine with iOS7 without outline.
I think you are using images for the button, use default system buttons.
check whether you have used button style as UIBarButtonItemStylePlain

Button is resizing when app is run either in the simulator or on an actual device

So here is my problem:
I am building an iPhone app (not universal) for deployment on iOS 7.0. In my very first View Controller I have two buttons. Both buttons are set as "Custom" and just contain a text png I made in Illustrator as the image for the button. My first button works great. It has both the #2x version and the normal version in the Image.xcassets folder under its own icon name. My next button work exactly the same way, except with different text file. It was created the same way. It looks great inside the storyboard, but when I run my app on either a simulator or an actual device, the 2nd button resizes itself. I have no clue how to fix this.
So far I have tried cleaning the project, restarting Xcode, reinserting the image file, playing with the button properties inside of the storyboard, and turning OFF auto layout.
Here is a screenshot of the simulator running next to the storyboard view in Xcode:
It sounds like the Attributes > View > Mode on the second button may be set differently, but you mentioned you have tried adjusting setting. Try deleting the button that is not working, duplicating the one that is working and changing the image in the duplicate to the second image.
To be sure there is not something unusual going on with your image (can't really imagine what), have you tried using the image that is shrinking in the button that seems to be ok?
You can also click on the "Resolve Auto Layout Issues > Reset to Suggested Constraints" to see if that helps. You can also try clearing all constraints and resetting them via that same menu.

Make the keyboard in my iOS 7 app translucent/transparent

I've seen that iOS 7 brings some cool features in terms of design, and I was wondering whether I can make the keyboard transparent, as I've seen in some apps.
If so, how can I do it?
I've done a bit of research but haven't found much about it.
Assuming you're working with Xcode 5, the keyboard in iOS 7 IS transparent by default. You don't have to do anything. In IB/Storyboard, place a UITextField onto a ViewController, and turn that ViewController's view green (or some other color). When you click in the UITextField and the keyboard comes up, you'll notice that you can see the view's background color through the keyboard.
In order for the keyboard to be translucent by default, you will need to build your app on Xcode 5 with your Base SDK set to iOS 7.
If you are using an IB file originally created in an earlier Xcode, click on the File Inspector and change the View As property to Xcode 5.

Resources