ios8

View controller is not showing on whole screen for iphone-6 and iPhone 6 plus (in Swift and Objective-c both)

末鹿安然 提交于 2019-12-10 11:38:59
问题 Strange bug i am getting right now : If i am disabling auto-layout in application and trying to handle with launch screen then strange bug is coming : Step 1 : If i am setting application for iOS-7 and above only for LaunchImage then everything is working fine . But problem is that we can not set LaunchImage screen for iPhone- 6 and iPhone 6 + ( In this case 1136 size image will show as splash of iPhone 6 and iPhone 6+ ) And window size of iPhone 5 and above is showing 320*568 (for iPhone5 .

xcode swift - formatting text as phone number [duplicate]

不问归期 提交于 2019-12-10 11:26:27
问题 This question already has answers here : UITextField for Phone Number (24 answers) Closed 4 years ago . I'm creating an iPhone app using Swift. I'm trying to setup a textfield in which the user can enter a phone number that automatically becomes formatted EXACTLY like it does in the built-in Contacts app as it is typed. I'm hoping xcode has built-in methods for doing this. As an alternative, I created my own code that would add and delete brackets, dashes, etc as the user types and backspaces

Using categories in iOS 8 frameworks

混江龙づ霸主 提交于 2019-12-10 11:15:42
问题 I am trying to share some code between an app and an extension, using a framework. Mostly this works, but I have several categories that do not seem to load correctly in the extension. For example, I have a category on NSString to reverse the target string, but when I try to use that selector within the extension my code traps with an "unrecognized selector" exception. I tried adding the "-all_load" linker flag, first to just the framework, and then to the extension, to try and force load all

Has anybody upgraded existing Universal Framework for iOS 8 and Xcode 6

心已入冬 提交于 2019-12-10 10:57:17
问题 There appear to be lots of people having issues since Apple's updates to support Universal Frameworks in their latest release. We have been using Universal Frameworks for quite some time. Of course, the update broke our Universal Frameworks and I have been trying to figure out how to get them to work again. I have looked at a few questions and found this one to be exceptionally helpful. There appears to be some confusion regarding whether scripts are still needed. I found some instructions

iOS 8 autorotate rotates images off the screen

倖福魔咒の 提交于 2019-12-10 10:57:01
问题 So I recently heard word from my customers about a strange issue. The screen will go black on them when they try to rotate their screen. This appears to be an iOS 8 thing only since my latest release was just to add iOS 8 to the mix. From my viewcontroller: - (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation { // // There are 2 ways to support auto-rotation: // - The OpenGL / cocos2d way // - Faster, but doesn't rotate the UIKit objects // - The

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

帅比萌擦擦* 提交于 2019-12-10 10:56:45
问题 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. 回答1: 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

iOS 8 UITableView rotation bug

旧巷老猫 提交于 2019-12-10 10:44:56
问题 So after compiling an app on XCode 6, I noticed a strange bug that happens only when running on iOS 8: The UITableView takes the wrong inner dimensions after updating its frame. Now I'll try to explain the exact situation: We have a UITableView rotated on its side, which basically makes a horizontal UITableView . It happens through tableView.transform = CGAffineTransformMakeRotation(-M_PI / 2); . Now after setting the transform, and then settings its frame - everything is fine. But of course

Automating iOS 8 app with Appium causes app freeze

走远了吗. 提交于 2019-12-10 10:43:45
问题 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

SWIFT: No idea how to get back the selected value from a popover to the calling controller

心不动则不痛 提交于 2019-12-10 10:38:16
问题 I just going crazy on Swift Popover “return” values. I am new to Objectiv-C as well as SWIFT but I try to focus on SWIFT. I checked out tutorials around Google and StackOverflow about how to manage iOS popovers, learned a lot but the last peace I couldn’t make it. It is great so see how easy it is made using Swift and Xcode 6, love it, but I could not figure out how to get back the selected value from my popover to my calling view controller. So here is my problem: (SIDENOTE: I am using SWIFT

“Error: this process has called an NSArray-taking method…” when iCloud pushes managed objects

人走茶凉 提交于 2019-12-10 10:18:52
问题 For every managed object that is sent via iCloud update, this warning/error is sent to the console: *** ERROR: this process has called an NSArray-taking method, such as initWithArray:, and passed in an NSSet object. This is being worked-around for now, but will soon cause you grief. My managed objects are Clients and have a one to many relationship with assessments as shown below. class Client: NSManagedObject { //other NSManaged vars are here @NSManaged var assessment: NSOrderedSet } Judging