ios8

Simulate on Xcode 6 somethings wrong

删除回忆录丶 提交于 2019-12-06 08:42:42
问题 I installed Xcode 6 gm version. I created new project and I run it on iPhone 6 or iPhone 5s simulator with ios 8. Everything is fine.But When I simulate on iphone 5s deployment target ios 7.1.Device screen is not full screen.it runs like as 3.5inc screen.Do you know reason of that? Is it XCode 6's bug? 回答1: you should put launch screen for iphone 5 - 640x1136 named Default-568h@2x or use catalog assets alternatively. 回答2: Figured out a solution in my case Go to General tab of project's target

How to have multiple position state for viewcontroller's views?

不打扰是莪最后的温柔 提交于 2019-12-06 08:11:29
问题 The problem I'm trying to solve is this: I have a DetailViewController that displays the data for my Model with UIImageView 's, UITextFields 's, etc. If the user taps a button, those DetailViewController 's views move to different positions and start to be editable. When editable, if the user taps one of the UITextField (just one of them is special) the UITextField moves to the top of the screen and a UITableView appears to autocomplete it (just like when you type something on google). The

Multiple frameworks and common library

醉酒当歌 提交于 2019-12-06 07:59:36
问题 Using iOS 8, Xcode 6 . Let's say I have 2 dynamic frameworks, frameworkA and frameworkB and they are both dependent on libC . In addition, I have an app that uses both frameworkA and frameworkB . My original thought was to make frameworkA and frameworkB umbrella frameworks and libC a subframework. However, Apple advises against umbrella framework and this post describes why umbrella framework is a bad idea due to potential linker conflict issue. My second option is to use cocoapods (still new

Xcode 6 iOS 8 UITableView rowHeight property returns -1 [duplicate]

时光怂恿深爱的人放手 提交于 2019-12-06 07:46:25
This question already has answers here : Wrong value from UITableView:rowHeight at iOS8 (6 answers) Closed 5 years ago . I have a UITableView in Xcode in my project and I set rowHeight to be 44 in StoryBoard . In iOS7 everything is fine but in iOS8 rowHeight returns a value of -1 which cause my table view not being displayed. In iOS 8, Apple introduces a new feature for UITableView known as Self Sizing Cells. If you want to display dynamic content in table view with variable height, you would need to calculate the row height manually. tableView.estimatedRowHeight = 44.0 tableView.rowHeight =

Automating iOS 8 app with Appium causes app freeze

瘦欲@ 提交于 2019-12-06 07:38:22
We have an app that we run automation tests on with Appium. We can launch the app on the device and simulator through Appium. However, the app hangs and freezes after Appium sends 2-3 tap commands. After the freeze, Appium can not find any other elements on the screen. We looked into writing a test script using Xcode 6.0.1 Instruments, but when the script is run, the app hangs as well. The app performs as expected when testing manually. It only hangs when we try to run automation on it either with Appium or with Xcode's Instruments. We are using Appium v1.3.0-beta1, and Xcode 6.0.1. This seems

How can we disable the effect of enabled “bold text” from settings in the iphone (in my app)? - swift 2.0

試著忘記壹切 提交于 2019-12-06 07:37:19
If the user’s device has bold text enabled there are certain parts of the system that will automatically respond to that. For example, if you are using a default navigation controller in your app, the title and the UIBarButtonItem at the top of the screen will become bold. How can I disable the effect of bold text to all my app and specially to the default navigation controller ( to the title and the UIBarButtonItem ) in my app ? - swift 2.0 ( iOS 8 & 9 ) . thx all : ) I have this code to detect if the bold text is enabled : ( if it is useful ) if (UIAccessibilityIsBoldTextEnabled()) { // use

unregisterForRemoteNotifications doesn't work for iOS8 - Push Notification

ε祈祈猫儿з 提交于 2019-12-06 07:37:09
I decided to turn off my notification on "reminders" switch control from my app. I added those lines in my app to make it support both iOS 7 and iOS 8 and it is working when I switched off push notification. BUT when I decided to turn on the switch and closed the app,when I opened it again and it went back to OFF instead of being ON. So I have to go to Settings --> Notification Center --> "my app" and turn all the things back on because they are off... Very strange that when I test it on iOS 7 it is working but not for iOS 8. Any suggestion appreciated. Thanks. - (IBAction

Share Extension not uploading full size images

你离开我真会死。 提交于 2019-12-06 07:28:19
问题 i am developeing share extension for my iOS application. i had really done every thing but the problem is that my code is only working for small images but when i upload image taken from device camer then uploading fails and only text get uploded. - (void)performUploadWith:(NSDictionary *)parameters imageFile:(UIImage *)image{ NSString *boundary = @"SportuondoFormBoundary"; // NSURLSessionConfiguration *configuration= [NSURLSessionConfiguration backgroundSessionConfigurationWithIdentifier

UISearchBar out of screen bounds when navigation bar translucent = false

不打扰是莪最后的温柔 提交于 2019-12-06 07:15:47
问题 I try add UISearchBarController to tableView, but when i set UINavigationBar.appearance().translucent = false then UISearchBar hide out of screen in TableViewController var resultSearchC: UISearchController = UISearchController() override func viewDidLoad() { super.viewDidLoad() self.resultSearchC = ({ let c = UISearchController(searchResultsController: nil) c.searchResultsUpdater = self c.searchBar.translucent = true c.searchBar.barTintColor = .redColor() c.searchBar.sizeToFit() self