UISwitch looks strange on IOS5 simulator and device - objective-c

When i add UISwitch in IB it looks as it should. But when i run my app in 5.0 simulator or on 5.0 device, i get this:
If i run it on ios4 simulator everything looks ok. This a large project that has three20 included and was transformed to ARC with XCode.
What could be wrong?

What you get on iOS 5 is the new Switch Control.

Related

Xcode 8.1 Still has Autolayout issue in Storyboard

Storyboard getting issues in autolayouts, In Xcode 7 there was no issues in Autolayouts, when coming to Xcode 8.1 when i view the Storyboard in iPhone SE it looks like this !
When i View the same VC in iPhone 7 it looks like this ! with different layouts and with errors, but it works fine when i run in all sizes of simulators.
How to solve this in Storyboard?

Xcode 6.1 - Map View appears blank in iOS7 simulator or iPhone 4

Since I last updated to Xcode 6.1 and Yosemite, the map views in my app started to appear blank either in ios7.1 simulator or my iPhone4 (iOS7.1).
I could replicate the situation by creating a brand new single view application with just a MKMapView and although it appears correctly in iOS8 simulators, in the iOS7.1 simulators or my iPhone4 it shows only a blank screen. The iOS Deployment Target is set to iOS 7.1.
I tested this simple app in a friend's Mac with Mavericks but the same situation occurs.
Is this some bug of Xcode 6.1 or SDK, or do I have to add something to run maps on iOS7?
I faced the same problem. To fix it, you have to disable Size Classes. Go to Storyboard and in the right sidebar, you should see a check box saying 'Use Size Classes' under 'Interface builder document'. Untick it and you should see the map again.
Read this to find out why this happens:
iOS MkMapView blank after moving to Xcode 6

Cocos Builder Landscalpe UI shows up Portrait in IOS 6.1 simulator

I have made UI using Cocos builder in landscape mode. UI appears in landscape mode when I run the project in iphoneOS 5.0 simulator. When I run the same xCode project, UI shows shows up in portrait when the device is actually in landscape mode. How can I fix this problem?
Simulator screenshot for OS 6.0:
Simulator screenshot for OS 5.0:
When we created our project, we decided to use Cocos Builder. More than week I tried to adjust it and to start using but as to me it became sad when I saw that default builder examples are shown crooked. I do not recommend you to use cocos builder.

interface orientation in iOS6

I have to make some changes in an existing app. That app was last update in June when iOS6.0 was not launched. I am wondering how the orientation works properly on the devices running with iOS6.0?? As that build contains deprecated methods of oreintation?
- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation
This method doesnt get called in iOS6.0 then how that app in app store is working fine in iOS6 devices? Additionally if i run this app from xcode using its code, then it doesnt support orientation for iOS6. Now my client is saying app on app store is working fine with orientation in all the devices and the new build is not supporting orientation. I know I can fix this issue by using new methods for orientation
-(BOOL)shouldAutoRotate
but just curious to know how older app is working fine on iOS6 devices using deprecated methods when those method are not even getting called in when i run it using xcode.
The older applications were compiled using iOS 5.x SDK, that's why they can run fine on iOS 6, the problem occurs when you compile non iOS 6 compliant code with iOS 6.x SDK.

iPhone app crashes after splashscreen

My iPhone App works fine on iOS 5, but crashes after Splashscreen on iOS4. (using PhoneGap) (using HockeyApp.net).
I am new for ios development.
I have developed an ios app with deployment target 4.0.
It is perfectly installed and working on iPad 2 (os-5.1) and iPod touch ([4g] os-5.0.1).
It is installing on iPhone 4 (os-4.2.6) and iPod touch ([2g] os-4.2.1) but not working. It shows the splashscreen, but crashes after that.
I have addded my own log function in code and found that it is crashed before going inside didFinishLaunchingWithOptions function.
I am using HockeyApp.net to download the ipa file.
I am not getting what is the problem exactly, the following is my AppDelegate.m file.
AppDelegate.m : https://gist.github.com/4343470
The crash report:
Crash Report: https://gist.github.com/4343472
Please help me out this.
Thank you in advance.
The crash is because CDVCordovaView is a subclass of UIWebView, and UIWebView's scrollView property is only defined starting in iOS 5. Somewhere in your code you are trying to access the scrollView property, which causes the crash. Check if the CDVCordovaView object respondsToSelector:#selector(scrollView) before you access scrollView, to prevent the crash.