Data dodania Pytanie
2017-07-25 15:07 Xcode debug memory graph showing released object »
I've been looking in the Xcode Memory Graph tool for a project and was noticing some odd behaviour. Hoping someone might be able to explain what's goi...
(1) odpowiedzi
2017-07-25 11:07 Swift unrecognized selector sent to instance segmented control »
I trying to add selector to my UISegmentedControl. segmentedControl = UISegmentedControl(items: items) segmentedControl.layer.cornerRadius = ...
(2) odpowiedzi
2017-07-25 09:07 Swift 3: Checking if app is in background »
I need to check if the app is moved to the background. Why? Well because my app works with bluetooth and only one person can be connected to this dev...
(3) odpowiedzi
2017-07-24 23:07 Swift: How to make my character in my game only be able to jump once he hits the ground? »
I'm developing a game where my character jumps from land to land. I have everything down and done except my remaining problem is if you keep tapping t...
(2) odpowiedzi
2017-07-24 22:07 Why does `+=` not work with implicitly unwrapped optionals »
Why does += not work with implicitly unwrapped optionals, for instance: var count: Int! = 10 count = count + 10 // This works count += 10 // this doe...
(1) odpowiedzi
2017-07-24 09:07 My Xcode swift project name contains space, so while creating bridging header i need to maintain space »
My project name Crisp Air in swift language. i want to use objective c files using pods for that purpose i have created bridging header like Crisp Air...
(1) odpowiedzi
2017-07-24 00:07 In Swift 3, what is a way to compare two closures? »
Suppose you have two closures of type (Int)->() in Swift 3 and test to see if they are the same as each other: typealias Baz = (Int)->() let cl...
(2) odpowiedzi
2017-07-23 18:07 what is the difference heightForRowAt vs estimatedHeightForRowAt? »
Normally when i want set my row height then set func tableView(_ tableView: UITableView, heightForRowAt indexPath: IndexPath) -> CGFloat { ...
(2) odpowiedzi
2017-07-23 17:07 observeValue called twice on UserDefaults »
My main view controller is added as observer for some key in UserDefault. But every time the value changed, observeValue is called twice. The stacks...
(0) odpowiedzi
2017-07-23 02:07 Timer going into negatives/not reseting »
I am trying to set a countdown timer for my app. My code works so that every time the image whiteDot is dragged and containing smallDot the countdown ...
(2) odpowiedzi
2017-07-22 12:07 Error when trying to install Firebase with pod relative to nanopb »
I'm trying to install Firebase in my swift application with Cocoapod like this : pod 'Firebase/Core' pod 'Firebase/Messaging' But got an error whe...
(4) odpowiedzi
2017-07-22 11:07 Which value types in Swift supports copy-on-write? »
I read about copy-on-write implementation for Array in Swift here. Arrays, like all variable-size collections in the standard library, use copy-on...
(1) odpowiedzi
2017-07-22 07:07 Push Notification without using internet,wifi,APNS and apple push notification server »
I need to write an IOS app to let a few IOS devices to send local notifications to each other WITHOUT external Internet connection (without using APNS...
(2) odpowiedzi
2017-07-22 07:07 Search Bar Controller with Table view in swift »
I am new to Swift programming SearchBar controller with tableview. I want display the multiple students in table view its working fine. I can add t...
(0) odpowiedzi
2017-07-21 20:07 How does a non optional value obtain a nil value? »
The Apple documentation TN2151 says this for a possible cause of a EXC_BREAKPOINT / SIGTRAP: a non-optional type with a nil value But code such ...
(4) odpowiedzi
2017-07-21 14:07 Get transition percentage in UINavigationController »
I've two UIViews presented in the same UINavigationController; View A & View B. During the transition, because I want to apply some custom animat...
(1) odpowiedzi
2017-07-21 11:07 Why can't I pass a Protocol.Type to a generic T.Type parameter? »
I was working with Swinject and a problem is bugging me. I have been stuck one this for almost an entire day. I suspect this is due to Swift being a s...
(2) odpowiedzi
2017-07-21 07:07 I need to pass string value from index 1. i have code in swift 1.2 but i can't get desired output in swift 3 »
cString = cString.substring(from: advance(cString.startIndex, 1)) //I'm new to swift3 please suggest me replace to this line in swift 3. Xcode is no...
(2) odpowiedzi
2017-07-20 16:07 Swift: how to create an image on the left side of a text field? »
I have got a text field: let usn_text_field: UITextField = { let tf = UITextField() tf.placeholder = "Username" tf.translates...
(2) odpowiedzi
2017-07-20 14:07 How to handle more than one location on the same address and cluster them? »
I'm using google maps with clusters in iOS application developed in Swift. On google map there are some markers with the same latitude and longitude. ...
(3) odpowiedzi
2017-07-20 13:07 SKAction resumes when appDidBecomeActive() even when game is paused before appDidResignActive() »
I have an iOS SpriteKit game, which has a moving node. When you press the pause button, the node.isPaused = true line gets called. But if you press pa...
(1) odpowiedzi
2017-07-19 16:07 How to crop the UIView as semi circle? »
I want to crop UIView in semi circle shape Thanks in advance. ...
(2) odpowiedzi
2017-07-19 14:07 Best way to move an item to the start of a collection »
If I have a collection let initial = [ "a", "b", "c", "d", "e" ] and I wanted to move an item from that collection to the start (but keep the order...
(2) odpowiedzi
2017-07-19 14:07 How to prevent SpriteKit overlay in SceneKit to stretch? »
In WWDC 2017 SceneKit session they recommend using overlaySKScene to overlay a SpriteKit layer over SceneKit for HUD, etc. It seems to work fine until...
(1) odpowiedzi
2017-07-18 20:07 Rounding Numbers to Two Significant Figures »
I am sure this is an easy question to any of you are experienced in Swift, however, I just started learning how to program and have no idea where to s...
(3) odpowiedzi
2017-07-18 09:07 iOS Swift - How to assign a default action to all buttons programmatically »
I'm working with an app in prototype stage of development. Some interface elements do not have any action assigned to them either through storyboard o...
(4) odpowiedzi
2017-07-18 00:07 converting image to binary in swift »
I want to convert an image to binary black and white, at the moment I am looping through pixels (stored in UnsafeMutableBufferPointer) using normal ne...
(1) odpowiedzi
2017-07-17 19:07 Swift SpriteKit: Creating a realistic driving experience 2D »
How would I go by creating a realistic driving experience? I'm using iOS Swift 3 with SpriteKit using the functions applyForce to accelerate when I c...
(1) odpowiedzi
2017-07-17 11:07 What are the differences between observable and subject in rxSwift »
What are the differences between observable and subject. When I define a observable type variable. It can emit onNext,onComplete,onDispose. However su...
(3) odpowiedzi
2017-07-17 04:07 UITableViewController's didSelectRowAtIndexPath doesn't work »
I am using an UITableViewController for it and I override the following method and try to enable different segues when the user select different row. ...
(4) odpowiedzi
2017-07-16 22:07 How to create lazy combinations »
My question is very simple, how do I make this code lazy: /* input: [ [1, 2], [3, 4], [5, 6] ] output: [ [1, 3, 5], [1, 3, 6], ...
(2) odpowiedzi
2017-07-16 21:07 Trying to logout of app using Facebook Login iOS SDK in Swift »
Dear fellow iOS developers: I am currently able to login to my app using the FBSDKLogin framework successfully. I've also assigned my ViewController...
(0) odpowiedzi
2017-07-16 15:07 Changing SKPhysicsBody parameters doesn't have effect »
I try to simulate behavior of different types of balls (football ball, tennis, golf, volleyball etc). For these purposes I tried to change density, m...
(1) odpowiedzi
2017-07-16 13:07 Set UImage form local path URL - causes crash »
Setting imageviews in collection view with local path URL like this: let fileURL = documentsUrl.appendingPathComponent(fileName) myImageView.image =...
(2) odpowiedzi
2017-07-16 09:07 swift - I can connect to socket.io server but I can't emit event »
I am beginner to socket.io now I can connect to socket server & server log my connection but I can't emit events to the server here is my code : ...
(1) odpowiedzi