I'm using Xcode 6.1 The below code works with all iOS 7 simulators/devices. It works with iOS 8 = iPhone 4s, 5c, 5, 5s, iPad non-retina. However, the code doesn't rotate to UpsideDown orientation with iOS 8 for iPhone 6, 6+ and iPad Retina.
-(NSUInteger)supportedInterfaceOrientations {
return (UIInterfaceOrientationMaskPortrait | UIInterfaceOrientationMaskPortraitUpsideDown);
}
Is this a bug? The above code is NOT deprecated according to researching it in Apple documents. How do I UNDO this bug to make it work?
Apparently it's the expected behaviour in iOS 8.3:
http://www.reddit.com/r/apple/comments/30xcn3/latest_ios_83_beta_removes_upside_down_home/
Related
I would like to have a window scale of 1 (no retina display), on the simulator for example.
[UIScreen mainScreen].scale
In other words, this should return 1.
Is it possible?
You would need to select a simulated device that has a scale of 1. This includes the iPad 2 and the original iPad, the original iPhone, iPhone 3G and 3GS, and the first three iPod touches. All other iOS devices have a scale of 2 or 3.
Of those, the iPad 2 supported up through iOS 9.3.5 which you can still support in an iOS app with Xcode 10. So set your app's Deployment Target to iOS 9.3 or earlier and run it with the iPad 2 simulator.
I have these iPhone simulators:
iPhone 5
iPhone 5s
iPhone 6
iPhone 6 Plus
iPhone 6s
iPhone 6s Plus
iPhone 7
iPhone 7 Plus
iPhone SE
What happened to the iPhone 4 and iPhone 4s?
1) You have to download at least iOS 8.x, 9.x SDKs to be able to run iPhone 4S simulator.
2) Your deployment target should remain at least 9.x to see iPhone 4S simulator in the list of offered simulators in your project.
I have an Xcode 8 and these simulators available:
Xcode 8 includes simulator from iPhone 5 & higher with default deployment target 10.0, but you can add a new simulator.
1.) Change "iOS Deployment target 10.0" to 9.3
2.) In "iOS Simulators" Choose Download simulators
3.) Simulator downloading like this:
Select the simulator that you will need.
4.) Wait for it to be downloaded.
5.) Add new simulator.
6.) Enjoy =D
iOS10 will not support iPhone 4 or iPhone 4s. Hence it's removed by apple from Xcode8.
If you still want to use 7.1 ( copy the disk image from Xcode 7 ). This will work but not sure if it's allowed to do so .
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport/7.1
I have found a quick solution - use an iPad simulator. It mimics screen size of iPhone 4.
If you have a universal app - disable this feature temporary (open your target -> select 'General' tab -> scroll down to 'Deployment Info' section -> click on 'Devices' dropdown -> select 'iPhone').
I have Installed Xcode 8 beta 6 and deployed the app into iOS 8 - 10 device to test.
I found some app images are broken in iOS 8 device (Please refer to the image shown below)
It works perfectly fine in iOS 9 and iOS 10
Is it a bug from Apple? Anyone having the same problem? Many thanks.
Possible duplicate to : Xcode 8 simulator ios 8 image get distorted
Update: Xcode 8 GM build fixed this problem
I'm having the same issues too. I found that the same image on iPhone 4s was distorted but not on iPhone 6s. So I then tested it by disabling the 1x and 2x asset for the same image. It then started working on iPhone 4s. I hope Apple fixes this issue in the gold master.
Same here! There is a pending bug report in the other ticket, hopefully Apple will react and fix this in the next Beta iteration.
This issue is back in Xcode 9.2
https://developer.apple.com/library/content/releasenotes/DeveloperTools/RN-Xcode/Chapters/Introduction.html#//apple_ref/doc/uid/TP40001051-CH1-SW936
"Workaround: Build the app using Xcode 9.1, or use Xcode 9.2 and set the deployment target to iOS 8.4 or later."
Another more involved workaround is to delete the image from Images.xcassets and add the image(s) back in directly to the bundle.
My current code for Portrait/Upside down orientation only works for iOS 7 devices iPhone/iPad. However, for iOS 8 devices it doesn't work. The code I use is ...
-(NSUInteger)supportedInterfaceOrientations {
return (UIInterfaceOrientationMaskPortrait | UIInterfaceOrientationMaskPortraitUpsideDown);
}
I'm working in Xcode 6.1, not using size classes and auto layout. Regular storyboard, no navigation controller.
I'm researching this and can't seem to find anything that works.
Is there a different way to do Portrait/Upside down orientation change for iOS 8 right now?
unable to view feedback chat by using apptentive third party in iOS 8 version.But it is good in lower version. please help me to get the Feedback chat in iOS 8.0 version
The "blank" Apptentive Message Center view in iOS 8 was caused by this issue: http://openradar.appspot.com/17962954
How can a get the auto layout size of the UICollectionViewCells in iOS 8? (systemLayoutSizeFittingSize returns size with zero height in iOS 8)
We added a partial fix for this issue in version 1.5.6 of the Apptentive iOS SDK. This added a default height of around 2 lines, if the height for a cell was reported as 0.
This issue was present for all iOS 8 devices in the iOS 8 beta.
It was fixed for the iPhone 5, 5s, and iPad Mini, at least, in the iOS 8 GM.
However, we still reproduced it using the iOS 8 GM on the iPad Retina and new iPhone 6 and 6 Plus. For those devices, it was fixed in iOS 8.0.2.
You should now see messages of the correct height in Message Center. If you continue to experience any issues, please let us know!