autolayout not working in xcode for iphone6 simulator - xcode

My app's layout is fine for the iphone 5 simulator but is not working for the iphone 6 simulator. The layout does not stretch to the right and the bottom of the screen in the iphone 6 simulator. I have tried clicking on all the autolayout check boxes in my storyboard. I did notice that the interface builder document is set for ios 7 and above. Is there an option for ios 8? Can I program the layout? Any help would be awesome! I was going to post photos but I cant since this is my first post.

What you need my friend, is an Xcode feature called Constraints. Constraints, along with auto-layout, help you use one storyboard, and with that storyboard alone, develop for both the iPhone and iPad. Maybe you should check these tutorials out!-
Brian J Coleman's Tutorial
I'll post the other links as comments, StackOverflow isn't letting me post them...
I used this one, i found it to be the best-
AppCoda's Tutorial
Happy Coding!

Related

Xamarin.form wallpapers on Android and Ios

I developed an application with Xamarin.Form it works very well on Android and also on Ios simulators but to my surprise when I deploy the application on Ios equipment the rendering is no longer the same.
Below are the captures
IOS
Ios
Android
Android
Please help
As xamarin.form does the same rendering I expected the same design on Ios but the rendering is good on Ios simulators but not on Iphone X
I give you some suggestions:
You could try to restart vc, clear the project, delete the bin folders and the obj folders and rebuild it. And iOS simulator you choose should also be iPhoneX.
In Settings App of iPhoneX, you could choose Display & Brightness section. Try switching Appearance from Light to Dark or Dark to Light to see if it make changes.
Hope it works for you.
Ok thank you for your comments.
Here is the solution for displaying it
In the info.plist file you have to add this:
<key>UILaunchScreen</key>
<dict/>
To make the page take up the whole screen
Regarding the black background, it is necessary to take into account the two modes of Ligth and Black theme of Iphone in its application.

Not able to scroll within simulator

I'm writing an app using RubyMotion and the redpotion gem. I have a problem displaying the app with the simulator as it does not allow me to scroll within a tableView. It neither works when simulating an iPhone 6 nor an iPhone 4.
This is independent of the app. I have tried it also with my friend's app which works fine on his computer.
As I am not experienced enough to find out exactly what causes the problem I hope very much that somebody can help me resolving the problem.
Thanks, Daniel

Xcode 6 simulator to device deformation

I updated to Xcode 6 recently and just started a new project. I made a project using storyboard and i was testing it in the simulator for the past days. Today i was testing the sound in the app and it wasn't working so i decided to try it on my iPod. This is what the app looks like in the simulator:
And now here is how it looks on my iPod:
I didn't use any constraints or anything. The only thing that could have messed it up IMO is the UIProgressView that i made bigger. I don't know if that could have deformed my project on device. Any suggestions to fix it?
ps: I was testing on the iphone 5 simulator and was using an ipod touch 5 to test on device.
Welp, i found the issue(s). The deformation was caused by Auto Layout being checked on. The black bars was solved here https://stackoverflow.com/a/25817683/3763526.

Xamarin iOS Storyboard not rendering

I got this error "There was a problem rendering this document" when i tried to load my storyboard in my xamarin iOS application. I created another xamarin iOS project and still got the same error.
You can not do much there right now.
There are two options one should do:
1. Use Xcode storyboard if you can.
2. If the first one is not an option, create and use multiple storyboards in your project, since after your storyboard gets big enough xamarin has a lot of problems rendering and working with it. You have a lot of documentation on how to use multiple storyboards in your project.

Tab Bar Icon display issue in universal app

I have an odd issue that's driving me nuts by now. Hopefully someone here can help me or ran into something similar. I've searched up and down but didn't find anything similar.
I am creating a universal app (Xcode 4.3.3) with storyboard including a UITabBar with 4 icons. The icons are from the free glyphish set, and look just fine in the iPhone simulator. In the iPad simulator, however, they look enlarged, and only about the top half is visible in the tabbar.
In addition to the original icon, I also created #2X, ~ipad and #2X~ipad versions (I did this for pretty much all art via batch in Photoshop). However, the icons look the same (i.e. too large) in the iPad simulator even when I remove these other versions and only keep the glyphish original.
I looked at the storyboard source code, I changed around a bunch of Tabbar and TabbarItem settings in the storyboard, nothing seems to help. HELP!
EDIT: I just noticed that the icons look fine in the iPad (Retina) simulator!?!?
SOLVED IT:
OK, solved it myself. Not sure which of these steps did it, but here's what I did:
delete the app from the simulator
Clean the Project
Recompile and Run
Now the icons display correctly. Go figure.
SOLVED IT: OK, solved it myself. Not sure which of these steps did it, but here's what I did:
Delete the app from the simulator
Clean the Project
Recompile and Run
Now the icons display correctly. Go figure.

Resources