xcode6

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 =

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

iOS : Application Loader gives 1069618639.itmsp error and java.heap.space exception

橙三吉。 提交于 2019-12-06 07:30:43
I am facing an issue while uploading iPA on test-flight via Application Loader and Xcode. How to resolve this? I am using Xcode v6.4 and Application Loader v3.1 Errors as follows : Error while processing package 1069618639.itmsp An exception has occurred: Java heap space Please refer attached screenshot. Thanks in advance. Same problem here with OsX 10.9.5 and Xcode 6.2. Resolved, after few days of try, only updating my Mac to El Capitain and last version of Xcode. I suppose was an incompatibility with java and/or with multitasking config not available on old Xcode. 来源: https://stackoverflow

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

How to save in NSUserDefaults a array of object?

倾然丶 夕夏残阳落幕 提交于 2019-12-06 06:58:35
问题 I need save in NSUserDefaults an array or other structure of data to save objects with this format: name = "myName", lastName = "myLastName" I was trying to do this with an array of arrays but this can't save in NSUserDefaults . Now I am trying with a custom class with structure to create objects and append to the array, but also get an error when trying to save this to NSUserDefaults . I need save with this structure, but I don't know what is the correct form. How would I do this? var

Live Streaming in Swift

廉价感情. 提交于 2019-12-06 06:46:46
问题 I need to create a live streaming application in SWIFT Tried many ways using AVFoundation framework (AVPLayer & AVPlayeritem) but didn't work It's audio only so I don't want to do it in the webview way. Thanks in advance 回答1: You might try leveraging the VideoCore library that wraps these frameworks into a complete streaming package. With this package, you can readily start publishing with little effort. Take the following for consideration (replicated from their example projects): To

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:

Import ChatKit (i.e., Private Framework) OR using CKDBMessage somehow

二次信任 提交于 2019-12-06 05:20:41
First - I know private frameworks/APIs won't get me to the AppStore, this is for private use/research only. I can't get my project to compile with ChatKit.framework . Basically I need to somehow init a CKDBMessage object and get stuff from it. The first approach I tried is to be able to call this: CKDBMessage* msg = [[CKDBMessage alloc] initWithRecordID:lastID]; NSLog(@"GOT SMS: %@", msg.text); I couldn't get it to compile with any combination of these solutions: Simply add only CKDBMessage.h to my project Add all the headers of ChatKit.framework Add also ChatKit.framework file itself I have

Use present as popover in a universal storyboard

随声附和 提交于 2019-12-06 05:04:33
Apple recommends to use a single storyboard for universal apps through size classes. Now I am trying to adapt the UI depending on the device, which has worked quiet well so far. The only problem I'm facing is how to assign the specific segues. For instance the settings, which in my App consist of only two tableview cells, should be made visible via a "present as a popover" on the iPad and a regular "show (e.g. Push)" segue on the iPhone. Is there any way to define it just like that using storyboards or do I need to write supporting code? Nick In WWDC session Apple engineer used "Present as

iOS 8 UITableView rotation bug

梦想的初衷 提交于 2019-12-06 04:54:16
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 the system in most cases sends the parent another frame change because it needs to set the parent to