xcode6

confused about different procedures for creating a fat static library in Xcode 6

为君一笑 提交于 2019-12-08 00:33:40
问题 I'm a little confused about information I am finding about how to create a universal framework using the latest Xcode 6 and iOS 8 environment. For instance, this answer includes the following: If you need to create universal static library that runs on both simulator and devices, then general steps are: 1. Build library for simulator 2. Build library for device 3. Combine them using lipo lipo -create -output "framework-test-01-universal" "Debug-iphonesimulator/framework-test-01.framework

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

断了今生、忘了曾经 提交于 2019-12-07 20:03:15
问题 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

unregisterForRemoteNotifications doesn't work for iOS8 - Push Notification

老子叫甜甜 提交于 2019-12-07 19:54:45
问题 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

iOS 8 - Launching the application in Landscape mode

て烟熏妆下的殇ゞ 提交于 2019-12-07 19:46:12
问题 My iPad application supports all the orientations and it worked fine in iOS 7 as well. However in iOS 8 , launching the application in Landscape mode made my login view draw the landscape view within a portrait frame. After doing some analysis I found out that the application window does not take the correct orientation while launching in Landscape . Doing a rotation after that corrects the UI since it takes the correct orientation from that point onwards. Would someone be able to guide me

How to add two custom cell into tableview in storyboard in Swift?

天大地大妈咪最大 提交于 2019-12-07 19:09:30
问题 I have a tableView with two different custom cell. One cell have a switch and other a image, I have Two separated custom class for the cells, identifiers.. but I can't see this. i don't know if I need change the configuration in story board to dynamic or other thing.. Can I show two different custom cells Thanks! 回答1: Check the criteria for showing each specific custom cell, then cast to that cell as needed: override func tableView(tableView: UITableView?, cellForRowAtIndexPath indexPath:

viewWithTag in UICollectionViewCell returns nil in Swift (until cell is reused)

非 Y 不嫁゛ 提交于 2019-12-07 18:16:37
问题 This lengthy title is roughly my problem. I started simple learning example using UICollectionView in Swift project. I added CollectionView to ViewController created by template, assigned delegate and data source. Custom cell is created in storyboard. Reuse identifier is set. Everything is fine so far. I have placed one UILabel in custom cell, and gave tag value 100. Here's code of my ViewController: https://gist.github.com/tomekc/becfdf6601ba64d5fd5d And interesting exceprt below: func

Moving between GameScene and ViewController Swift

99封情书 提交于 2019-12-07 18:00:28
I want to move from my GameScene to ViewController, when I touch an Image and back to GameScene when I touch an UIButton. It worked from ViewController to GameScene, because it is UIButton. I have done it like this: @IBAction func playbut(sender: UIButton) { var scene = GameScene(size: CGSize()) let skView = self.view as! SKView! skView.ignoresSiblingOrder = true scene.scaleMode = .ResizeFill scene.size = skView.bounds.size skView.presentScene(scene) } But I don't know what code to write to go back to ViewController, when I touch that image, which is on GameScene. What should I write to

Why Obj-C property default ownership “assign” instead of “strong”

核能气质少年 提交于 2019-12-07 17:40:59
问题 I'm adding Swift classes to an old project. It went well, until I tried adding a property to the Swift class. The generated header doesn't compile. I think the problem is, in the generated code, Swift omitted strong ownership and only declared it as nonatomic . This should normally be enough, because @property should default to strong ownership, right? So basically these are equivalent: @property (nonatomic) NSDate *aDate; @property (nonatomic, strong) NSDate *aDate; But, in my case, it seems

Xcode 6.1: UIViews disappearing in interface builder when adjusting frames

做~自己de王妃 提交于 2019-12-07 17:37:11
问题 I'm fairly new to Interface Builder and I'm trying to practice it with a very simple view . Basically, I have 3 UIViews on my view controller . The problem I am having is that whenever I adjust the frame of 1 of the UIViews, the other 2 will disappear. Here is a short 7 second video of the problem: https://vine.co/v/OMlbMIdWMe5 If I run the app on my device, I only see 1 of the views (the 1 I was adjusting) - the other 2 remain hidden. I am using Xcode 6.1 . What could be causing this? **

UISearchBar barTintColor clearColor error in iOS 8.0

ⅰ亾dé卋堺 提交于 2019-12-07 16:31:21
问题 In my app i am using UISearchBar in xib with Xcode 6. And i have given bar tin color is clear color. It's working on iOS 7.1 below. But main problem is in iOS 8.0 it's not working clear color. It's displaying black color. See Image : Any one having adventurous of this issue. 回答1: I had the same problem in search bar so i changed the Search style from default to Minimal . And it changed the bar style. 回答2: You can add a 1x1 pixel transparence image as background image to UISearchBar. It would