Data dodania Pytanie
2017-07-15 22:07 Overlapping SpriteNodes when rotating as a unit »
I've encountered an issue when developing my application using Swift 3 and Spritekit. I have made four separate triangles that make up a square for th...
(1) odpowiedzi
2017-07-15 15:07 Use of a swift dictionary returns all its values? »
I have the swift dictionary myD, that has enums of type myEnum as keys, and () functions as values. When I try the function of one of the keys, all fu...
(1) odpowiedzi
2017-07-15 10:07 Swift's Array type is bridged to Foundation's NSArray class, how? »
In Swift Language Guide we read the following: Swift’s Array type is bridged to Foundation’s NSArray class. How can Swift's Array be bridged...
(2) odpowiedzi
2017-07-14 20:07 How can I access IBOutlet in another class? »
I am having the same error that is in this question: how can i access IBOutlet in another class? in swift but when I write in my Xcode (for iOS 8 with...
(2) odpowiedzi
2017-07-14 17:07 What does the expression () -> () = {} mean in Swift? »
I'm going over some Swift code and I've encounter this function signature: func foo(withCompletion completion: @escaping () -> () = {}) { ... } ...
(1) odpowiedzi
2017-07-14 16:07 Issue with firebase query »
My query: let query = recentRef.queryOrderedByChild(FRECENT_GROUPID).queryEqualToValue(group_id) query.observeSingleEventOfType(.Value, withBlock: { ...
(0) odpowiedzi
2017-07-14 06:07 What is the alternative for adjustsFontForContentSizeCategory iOS? »
This Property work in only iOS 10+ OS what is alternative solution for replace property . Apple documentation for Objective C @property(nonatomic)...
(2) odpowiedzi
2017-07-13 22:07 How do I make sure the correct answer choices are displayed within a quiz app? »
I am developing a quiz app where I have a constant array of questions and answers. The answer choices are associated with the questions by having the ...
(2) odpowiedzi
2017-07-13 18:07 Resetting Facebook login »
In my app as of now, I have an email/password login. After the user logs in using this method, I would like the user to be able to login using Faceboo...
(0) odpowiedzi
2017-07-13 16:07 ARKit - Get current position of 'camera' in scene »
I'm in the process of learning both ARKit and Scenekit concurrently, and it's been a bit of a challenge. With a ARWorldTrackingSessionConfiguration ...
(1) odpowiedzi
2017-07-13 14:07 Type conversion with Swift 4's Codable »
I'm playing around with the new Codable protocol in Swift 4. I'm pulling JSON data from a web API via URLSession. Here's some sample data: { "image...
(1) odpowiedzi
2017-07-13 10:07 String to Date and Time format with swift »
I have a String like "20170713 111326" and it should be changed to "13/07/2017" and "11:13 AM".What'll be the easiest way? ...
(1) odpowiedzi
2017-07-12 23:07 Is swift let equivalent to objective-c const? »
Is this in Swift: let someString:String = "blah" Effectively equivalent to this in Objective-C: NSString * const someString = @"blah"; I've been a...
(1) odpowiedzi
2017-07-12 23:07 Time Took Variable in Swift »
Overview: I am trying to create quiz game where someone has to answer questions in a certain amount of time. They have 10 seconds to solve each questi...
(1) odpowiedzi
2017-07-12 15:07 How properly declare a variable in Swift? »
I found quite interesting these different ways to declare a variable in Swift: // METHOD 1 var dogName: String = "Charlie" // METHOD 2 var dogName: ...
(4) odpowiedzi
2017-07-12 14:07 SKAction not running on SKSpriteNode »
The SKAction on my SKShapeNode isn't working, the code isn't getting executed, and the node isn't moving, even though the console is logging "Snake is...
(1) odpowiedzi
2017-07-12 10:07 Move to first screen/Home screen at Application Crash »
- (void)applicationWillTerminate:(UIApplication *)application { NSLog(@"Application is terminating now."); } This function is called when applica...
(2) odpowiedzi
2017-07-11 23:07 Self.revealViewController() returns nil »
I am currently trying to get the pan gesture to reveal the controller. As of right now, my open button works, but when I add the last line, my program...
(1) odpowiedzi
2017-07-11 14:07 How to skip nil key-value pair in Dictionary mapping »
I am using custom code from here to map a Dictionary to a Dictionary: extension Dictionary { init(_ pairs: [Element]) { self.init() ...
(0) odpowiedzi
2017-07-11 13:07 Password AutoFill for iOS App »
In iOS 11 they have introduced password autofill which fills the username and password in iOS app like the same way it does in Safari, User goes to we...
(2) odpowiedzi
2017-07-11 10:07 Building a Cocoapods Module error [ARC] xcodebuild: Returned an unsuccessful exit code »
I'm quiet new at iOS development, this is my first question at SO. At my company we're trying to convert our app in a Cocoapods module to help as to c...
(1) odpowiedzi
2017-07-10 13:07 Matching a Swift protocol from an Objective-C Protocol instance »
I'm looking for a way to match dynamically an Objective-C Protocol instance with a corresponding Swift protocol. I have a protocol defined in swift t...
(1) odpowiedzi
2017-07-10 12:07 Make subview fit inside container and resize correctly »
I'm trying to load dynamic nibs as subviews of containers. I almost got it to work, except that the subviews have an offset I can't seem to get rid of...
(1) odpowiedzi
2017-07-10 03:07 Swift 3 : Remove value in Array with Unknown index »
I want to implement a multiple click in my Shinobi DataGrid. I have a grid which have array ( ["1", "32", and more] ) If I click the grid I put it...
(3) odpowiedzi
2017-07-09 23:07 How to unit test a static property? »
I have a ConferenceNumberDirectory that has a build function which parses a JSON file to create static Arrays of ConferenceNumber objects. I want to u...
(1) odpowiedzi
2017-07-09 15:07 Protocol function no working in swift 3 »
This is a cardCollectionView app, I am trying to delete item with longpress and show a delete button in item. I can delete item already, but my item d...
(1) odpowiedzi
2017-07-09 09:07 Changing the color of individual characters in a glyph »
As I understand it, a string contains glyphs and a glyph might consist of individual characters. For me this is a problem, as I would like to change t...
(2) odpowiedzi
2017-07-09 06:07 solve block form objective-c to swift 3 »
I have a trouble problem on block, on objective-c it works well, but I couldn't translate to swift 3, in objective-c case typedef void (^PanCellTo...
(2) odpowiedzi
2017-07-08 20:07 iOS slow-mo camera framerate varies »
I'm trying to configure an AVCaptureSession to record video at 240fps, 720p on an iPhone SE's back camera. I'm setting the capture format with this co...
(0) odpowiedzi
2017-07-08 19:07 Converting CGPoints between UIKit and SpriteKit woes: UIViews next to SKNodes »
There are many posts on this but for whatever reason I can't seem to get the correct sequence of conversions correct. I'm trying to get the UISliders ...
(1) odpowiedzi
2017-07-08 15:07 Xcode can't find my cell identifier »
I'm getting an error with my code that says... "Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'unable to...
(2) odpowiedzi
2017-07-08 12:07 How to rotate SKLabelNode in company with its parent SKShapeNode? »
When press the screen, balls created with the following codes: var n = 1 func addBall(_ x:CGFloat){ let numShape = SKShapeNode(circleOfRadius:...
(1) odpowiedzi
2017-07-07 17:07 Protocol declared in Objective-C Framework is not visible in Swift »
As the title says I have trouble using a protocol declared in Objective-C framework in a Swift app. I will try to describe the situation in detail bel...
(0) odpowiedzi
2017-07-07 10:07 Swift is not assigning variables from JSON results »
I have an issue with loading JSON results within swift (php connection). I can retrieve JSON data but it will not let me assign it to a variable. it...
(1) odpowiedzi
2017-07-07 10:07 Update object of an array in UIViewController from UITableViewCell »
I have a UITableViewCell that I use in several UITableView's that are in differents UIViewController's. From my cell, there is an object that I update...
(3) odpowiedzi