xcode7

UIPasteboard doesn't work in iOS9 Xcode7.0

心已入冬 提交于 2020-01-03 03:11:15
问题 i want to update my app to make compatible of iOS9.UIPasteboard's methods ware working perfectly till iOS8 but when i run in iOS9 there is no response from UIPasteboard. i mean to say, i'm not getting string or url or images. i read Apple'S Developer Document but can't find something useful.to get string from UIPasteboard i use following method.. id data; data = [UIPasteboard generalPasteboard].image; if(!data){ data = [UIPasteboard generalPasteboard].string; if(!data){ data = [UIPasteboard

Typhoon loading storyboard programmatically appears to perform asynchronous instantiation without blocking

白昼怎懂夜的黑 提交于 2020-01-02 20:09:39
问题 I am developing an iOS application and am trying to integrate Typhoon into the testing. I am currently trying to mock out a dependency in a view controller that comes from the storyboard, so with in my assembly: public dynamic var systemComponents: SystemComponents! public dynamic func storyboard() -> AnyObject { return TyphoonDefinition.withClass(TyphoonStoryboard.self) { (definition) in definition.useInitializer("storyboardWithName:factory:bundle:") { (initializer) in initializer

Import Kanna in playground

▼魔方 西西 提交于 2020-01-02 10:03:54
问题 Is there a way to add Kanna (https://github.com/tid-kijyun/Kanna) to Playground in XCode? I have tried to install it manually and via CocoaPods, but with no luck. I have also tried to pack it inside a Framework, but still no luck. Would appreciate any input. These are the error messages I am most often encountering: 回答1: There is an interesting library in Github that allows run pods in Playground.It's still so young but it's very good. It's create a new project with the pod or pods installed

Layer transform matrix (CATransform3D, etc.) but with IBDesignable?

雨燕双飞 提交于 2020-01-02 06:31:30
问题 This class will put perspective on an upright image. It works perfectly BUT does not work live in Storyboard with IBDesignable. Which is very sad. Is it possible to use CATransform3D and the like for live display on Storyboard with IBDesignable?? // Twist.swift .. twist on Y, perspective from the left import UIKit @IBDesignable class Twist:UIViewController { @IBInspectable var perspective:CGFloat = 0.5 // -1 to 1 @IBOutlet var im:UIView! // the image you want to twist on y override func

Refactored storyboard fails to compile XCode7

邮差的信 提交于 2020-01-02 05:59:12
问题 I've decided to split the my (quite complex) storyboard into smaller chunks using the new "Storyboard refactor" feature in XCode7. I've started with one tab and refactored all the controllers within that tabbed navigation controller into separate file. But the storyboard fails to compile with "Storyboard References cannot be the destinations of relationship segues prior to iOS 9.0" . Now I've read that storyboard references should be deployable to iOS8 (which is our deployment target)

FirebaseMessaging module not found using cocoapods iOS

不羁岁月 提交于 2020-01-02 03:12:27
问题 I'm getting a error that 'FirebaseMessaging module not found'. Below is my pod file structure. Official documentation shows Firebase/Messaging is available. I've written in pod file and tried to install it. The stats in terminal doesn't shows FirebaseMessaging installation and same does that pods directory. Below is terminal stats. Where I'm going wrong? 回答1: The culprit was Pods! I removed all CocoaPods from Project using this link. Thereafter, I again added Pods to project using this link.

Xcode 7 UI test cases for pre Xcode 7 projects

北城余情 提交于 2020-01-02 01:23:07
问题 Apple simplified iOS UI testing in Xcode 7. With new Xcode 7 projects, all you have to do to get the complete configuration for iOS UI testing is to check "Include UI tests" when creating a project. What are the steps to get the same in Xcode 7 for projects that were created before Xcode 7 existed? 回答1: After testing several older projects: Adding a new UI test target is sufficient as suggested by a-live in a comment to the question: File > New > Target > Test > Cocoa Touch UI Testing Bundle

How do I clear a warning for xcassets unassigned children?

…衆ロ難τιáo~ 提交于 2020-01-02 01:12:08
问题 Every time I build I receive two warnings: <Project name> Assets.xcassets The launch image set "BrandAsset" has 2 unassigned children. <Project name> Images.xcassets The launch image set "BrandAsset" has 2 unassigned children. Not really sure what to do about this because I am assigning an existing storyboard for the Launch Screen File . Under Launch Screen Source , I just see a button that says Use Asset Catalog . How can I fix my build to clear these warnings? 回答1: just select unassigned

Compress Png Files missing from build settings

两盒软妹~` 提交于 2020-01-02 00:53:12
问题 I am building an app which has quite a few images in, therefore I have crushed them all using ImageOptim to help decrease the size of my .IPA. How ever the size of my app has not changed at all. I have looked on their website and they say to turn off Compress Png Files in the Build Settings under Packaging. However that option is not there. I have tried manually adding it into my project.pbxproj but it gets listed under the User Defined section and does not turn it off. I have also tried

How to link to libz and libsqlite in xcode 7 beta?

笑着哭i 提交于 2020-01-01 17:09:53
问题 I got linkage error like: +[WeChatApiUtil DecodeBase64:] in libWeChatSDK.a(WeChatApiUtil.o) "_deflate", referenced from: +[MTAWXOHelper GZip:Out:] in libWeChatSDK.a(MTAWXOHelper.o) "_deflateEnd", referenced from: +[MTAWXOHelper GZip:Out:] in libWeChatSDK.a(MTAWXOHelper.o) "_deflateInit2_", referenced from: But I've already added those library to my target. But currently all those library have different extension .tbd. Any idea? Thanks. 回答1: There is a known issue in XCode 7 while linking tbd