Data dodania Pytanie
2017-01-31 02:01 How to present view controller embedded in navigation controller modally? »
Say I have these view controllers: Navigation Controller -> vc1 -> vc2 -> vc3 I want vc3 to show modally (appear form the bottom), so I selected the ...
(1) odpowiedzi
2017-01-30 19:01 Unarchived Node doesn't appear when added to parent in SpriteKit »
Previously I was questioning if i could use the Scene editor to create complex SKSpriteNodes vs just using it to layout SKScenes. With the help of @An...
(1) odpowiedzi
2017-01-30 16:01 Why does filter(_:)’s predicate get called so many times when evaluating it lazily? »
I saw an answer to this question, which, in it’s first revision, had code similar to this: let numbers = Array(0 ..< 50) let result = numbers.l...
(1) odpowiedzi
2017-01-30 13:01 Multiple Collection Views with same XIB Cell and button »
I have a View Controller with multiple Collection Views. Each collection view is using the same custom cell with xib. In this xib i have a button. ...
(2) odpowiedzi
2017-01-30 12:01 How to get CFBundleURLSchemes of an app in iOS Swift »
I have made a demo project App1 in which I added a button which will redirect me to the installed app suppose App2("fitbit") I have gone through many ...
(1) odpowiedzi
2017-01-29 12:01 How to make a screenshot of all the content of a Scrollview? »
I want to create a screenshot of a UIScrollView which should contain the whole content of the scroll view, even that content, which is currently not v...
(1) odpowiedzi
2017-01-29 08:01 using Objective-C protocol in Swift »
I have a protocol defined in Objective-C as below @protocol TestProtocol @required - (void) printInputString:(NSString*) s @end This protocol is ...
(0) odpowiedzi
2017-01-29 08:01 Crop Photo with Custom Shape »
I'm looking for some guidance as I build out a custom camera. I've used square cropping for photos in previous projects, but now I need to create a cu...
(1) odpowiedzi
2017-01-29 07:01 Swift memory address of outside instance of inout parameter same as copied instance »
This is my playground code. import Foundation func printAddress<T>(anyObj: T,message: String = "") { var copy = anyObj withUnsafePointer(...
(1) odpowiedzi
2017-01-28 20:01 Where is the '_?' syntactic sugar for pattern matching for '.some' documented? »
TL;DR The syntactic sugar _? can be used in pattern matching as a substitute for .some(_) (.some). Where in the official language docs is this docu...
(1) odpowiedzi
2017-01-28 11:01 How to simulate mouse click from Mac App to other Application »
I am trying to simulate mouse click on iphone simulator from macos App for that I am using CGEvents . the process id is 33554 for iPhone simulator ...
(1) odpowiedzi
2017-01-28 07:01 How do I unfocus UITextFields when user presses other controls/blank space? »
I have a UITextField. It works normally, meaning that when pressed, it fires EditingDidBegin method etc. The problem is that I cannot deselect it, mea...
(6) odpowiedzi
2017-01-27 11:01 Initializing attributes in a different method »
I have a class and initialize the attributes with default values: class Point { var x : Int var y : Int public init() { x = 1 y = 1 ...
(5) odpowiedzi
2017-01-27 09:01 XCode 8 playground execution failed, Couldn't lookup symbols »
Hello and welcome to my question over XCode 8. I have just downloaded and installed the new version of XCode on my mac from the mac app store. My mac ...
(0) odpowiedzi
2017-01-27 06:01 Use PropertyListSerialization to Make a Dictionary in swift 2 »
I am trying to make a dictionary with PropertyListSerialization in swift 2. But it constantly gives this error: "can not convert value of type 'Int'...
(2) odpowiedzi
2017-01-27 05:01 How to change speed of physics world for particle effects in Sprite Kit? »
I created particle effects using the editor but my app is done in all code (Swift). When I change the speed of the physics world, all my physics bodie...
(0) odpowiedzi
2017-01-26 20:01 Count the number of nil values in arrary of Int Optionals »
I'm just starting out with Swift and working with optionals. Struggling to count the number of nils in a test array after using generateRandomArrayOfI...
(4) odpowiedzi
2017-01-26 15:01 Drag and Drop cell between different Collection Views »
I have multiple collection views on one screen In collectionView One i have normal cell like Square In collectionView two i have group cell e.g sam...
(2) odpowiedzi
2017-01-26 11:01 How to solve "duplicate symbol" when added Firebase in Xcode »
I can't solve the error "duplicate symbol". The error is duplicate symbol _GSDK_NSClassFromString in: .../Pods/FirebaseCore/Frameworks/FirebaseCore....
(0) odpowiedzi
2017-01-25 15:01 Why is my just created pointer throwing a KERN_INVALID_ADDRESS? »
So in a similar vein to this recently posted question, I'm having problems integrating Amazon's AWS Obj-C library with my Swift app. I have an NSOpera...
(1) odpowiedzi
2017-01-25 15:01 Swift - How to add a layer on a UIImageView inside of a UICollectionViewCell and keep the parallax effect »
I'm working on a tvOS project. This project contains a UICollectionView with a UIImageView inside of each UICollectionViewCell. First of all I'm using...
(0) odpowiedzi
2017-01-25 12:01 Push gradient layer to background swift »
My app has a gradient layer that I made in code. However when I display this onscreen it covers all the other components and hides my buttons, labels ...
(3) odpowiedzi
2017-01-25 10:01 How to load number of column in UICollectionView »
I am new to swift, I am working in UICollectionView I need to load Seven column in it how can do it, Also padding between each cell should be (top:1,b...
(0) odpowiedzi
2017-01-25 09:01 Unrecognized selector sent to instance _UIAlertControllerAlertPresentationController »
There are couple of errors in real-time scenarios on my iOS application. I'm unable to understand this particular error on Core Foundation which is af...
(1) odpowiedzi
2017-01-25 09:01 Trying to use Realm Object Server Tutorial »
I have created an Amazon Web Services EC2 instance and deploy one of the AMIs with a Realm Object Server as its documentation explains: https://realm....
(3) odpowiedzi
2017-01-24 14:01 Way to get all struct types in Swift-3 runtime? »
Something like objc_getClassList but for structs. Just to give some context: this method (for classes) is used in our unit tests to test that all cla...
(0) odpowiedzi
2017-01-24 13:01 NSUserDefaults Saving. Coding issue »
I have an app that blocks User access to a few rows of a view controller. This is done by checking if a variable of type bool is set to true or false....
(2) odpowiedzi
2017-01-24 11:01 Swift 3: Transfer Utility enumerateToAssignBlocks method signature »
Official AWS docs contains the following objective-c code AWSS3TransferUtility *transferUtility = [AWSS3TransferUtility defaultS3TransferUtility]; [...
(1) odpowiedzi
2017-01-24 06:01 Flow layout animation glitch when inserting multiple custom supplementary views »
When inserting multiple custom supplementary views in a collection view with existing supplementary views, using a subclass of UICollectionViewFlowLay...
(1) odpowiedzi
2017-01-24 01:01 Enable blocked rows after in app purchase. Coding issue »
I have an app that blocks User access to a few rows of a view controller. This is done by checking if a variable of type bool is set to true or false....
(1) odpowiedzi
2017-01-23 23:01 swift array removeLast extremely slow »
Calling removeLast is extremely slow (it takes several minutes to pop off 77k elements). The documentation says O(1) and I would think the implementat...
(1) odpowiedzi
2017-01-23 18:01 Active tableView cells keep getting disabled when I scroll through my tableview »
I have app that has a UITableView containing different sections. I want to have only allow access to the first 3 sections i.e the index path 0, 1 and ...
(1) odpowiedzi
2017-01-23 16:01 objc_getClass: load swift class inheriting NSObject »
I'm trying to dynamically load a Swift class inheriting from NSObject using the objc runtime. (I'm trying to load the class from ObjC, not from Swift)...
(2) odpowiedzi
2017-01-23 13:01 Make all values of an array negative or change sign »
In SWIFT, is there a quick and efficient way to make all values of an array change sign (positive values become negative and vice-versa) ? For exampl...
(3) odpowiedzi
2017-01-23 11:01 how to start AVPlayer from background? »
First of all, I'm not asking how to play AVPlayer in the background. There are plenty of solution for that. My problem is a bit different. AVPlayer i...
(1) odpowiedzi