ios8

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

感情迁移 提交于 2019-12-06 07:13:08
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 here that say the new scripts are python scripts instead of shell scripts. But even with the information

UIPickerView Width in iOS8 Swift

青春壹個敷衍的年華 提交于 2019-12-06 06:54:49
问题 I simply can not find out how to get a width of a component on my UIPickerView. It's not allowing something simple (Int) as it needs to be CGFloat. What exactly do I put in the <#code#> section? func pickerView(pickerView: UIPickerView, widthForComponent component: Int) -> CGFloat { <#code#> } Thank you! 回答1: That method doesn't "get a width of a component..." The picker view calls that method to ask you how wide a component should be. Your method could be as simple as: func pickerView

IOS8 Safari website links do not work after scrolling

怎甘沉沦 提交于 2019-12-06 06:32:21
I have an Angular website with a Bootstrap theme built primarily for iPhone users and since the IOS8 update I have found problems relating to scrolling. The site behaves fine until I scroll, once I have scrolled the links behave erratically eg if I press Button 2, the link from Button 1 will open. Also some CSS3 styles are not working eg :nth-child(even) I have searched for days trying to find a link between this behaviour and a scrolling bug but I can't find a fix anywhere. Unfortunately I cannot post the website link but it consists of a fixed Header and Footer, and a div set to overflow:

iOS 8 UIImage Metadata

蓝咒 提交于 2019-12-06 06:09:20
This is my first question I've a a "little" problem: when i read UIImage metadata on iOS 7 I use this code and it works great #pragma mark - Image Picker Controller delegate methods - (void)imagePickerController:(UIImagePickerController *)picker didFinishPickingMediaWithInfo:(NSDictionary *)info { UIImage* image = [info objectForKey:UIImagePickerControllerOriginalImage]; [self metaDataFromAssetLibrary:info]; [picker dismissViewControllerAnimated:YES completion:NULL]; } From imagePickerController i choose the image and call metaDataFromAssetLibrary method - (void) metaDataFromAssetLibrary:

Unwanted margin UIPopoverController

梦想的初衷 提交于 2019-12-06 06:08:39
问题 When I present my popover in a view and place it at the side of the view. There is always a small margin, causing the popover to not stick to the side. UIViewController *vc = [self getViewController:@"popover" fromStoryboard:@"Main"]; UIPopoverController *popover = [[UIPopoverController alloc] initWithContentViewController:vc]; [popover presentPopoverFromRect:CGRectMake(1100, 0, -65, 65) inView:self.view permittedArrowDirections:UIPopoverArrowDirectionUp animated:YES]; [vc

xcode swift - formatting text as phone number [duplicate]

坚强是说给别人听的谎言 提交于 2019-12-06 05:47:41
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, but this quickly became problematic if the user was to move the curser away from the end of the

@3x images incorrectly used on iPhone 6 or 5S or 5 in XIB's with the “Use as Launch Image” option set

青春壹個敷衍的年華 提交于 2019-12-06 05:37:23
With-in a clean brand new iOS project I've: added 2 images to the project "background@2x.png" and "background@3x.png" added a XIB named "LaunchScreen.xib" checked the XIB's "Use as Launch Screen" option added a UIView sub-view to LaunchScreen.xib and set its image name to "background.png" with-in the project settings, under the targets 'General' settings I've set the 'Launch Screen file' to "LaunchScreen" Now when I launch the app on any of the devices list below the @3x image is displayed in the resulting launch screen when surely the @2x image should be used. Problem devices (that all use

iOS 8 Remove today extension

假如想象 提交于 2019-12-06 05:35:49
问题 I created a today extension coded in Objective c and I have decided that I do not want it in my app. I removed the scheme, the target and all the files that were associated with it, yet it remained in my notification center. I deleted the app and it was no longer in the notification center, then when I ran the app again it was back. Im afraid that when I submit the app there will be an empty widget as an option to add to notification center. Does anybody know how I can completely delete the

Can't set constraints of UItableView's tableHeaderView height by autolayout in Storyboard

这一生的挚爱 提交于 2019-12-06 05:29:02
问题 I want the screen only shows one tableveiwCell with headerView.I added a UIView as header view on the top of UITableView with "Size classes" in storyboard(Just drag a UIView on the top of the UITableView), it can compatible with all devices screen size in this way. So change header view's height by constraints is what i want to. but when i try to do that, i cant set constraints for the headerView(Xocde doesn't enable me select any constrains in storyboard, Image 2 below). As below. Any ideas,

How to add the project prefix file to photo extension target?

一个人想着一个人 提交于 2019-12-06 05:18:44
The main target typically contains a -Prefix.pch file where all the convenience imports are defined. E.g when using opencv with c++ there is #ifdef __cplusplus #import <opencv2/opencv.hpp> #endif #ifdef __OBJC__ #import <UIKit/UIKit.h> #import <Foundation/Foundation.h> #endif Unfortunately when using the new Photo Extension target in iOS 8, this file gets ignored making it a hassle to add all the files required in the extension target. Is there a way to make this Prefix file work also for the new target? thx You can change your extension's prefix header by changing your project's build