Data dodania Pytanie
2017-04-15 11:04 Where to put views creation in MVVM and MVC patterns? »
Please excuse me if its repeated topic. I usually write my apps without storyboards, and put views creation into "viewDidLoad", like: class LoginVC:...
(1) odpowiedzi
2017-04-15 08:04 xib files in Xcode 8.2 is not working properly.Is it a bug? »
I am really frustrated since i migrated my project from Xcode 7.3 to Xcode 8.2. I am using both storyboard and Xib files in my project . While running...
(2) odpowiedzi
2017-04-14 22:04 Using Realm in a Swift framework creating challenges for host iOS apps also using Realm »
I'm working on a closed source Swift framework that uses Realm internally. In the process of testing this framework, I'm using the framework within an...
(1) odpowiedzi
2017-04-14 20:04 getting "unexpectedly found nil" AFTER performing nil check »
Despite checking for nil, I am getting fatal error: unexpectedly found nil while unwrapping an Optional value the error is being caught in the conditi...
(1) odpowiedzi
2017-04-14 18:04 Find custom Object index in array »
I have an array of custom object called Service and in didSelectRow I populate my selected array of that object: func tableView(tableView: UITableVie...
(1) odpowiedzi
2017-04-14 17:04 How to migrate array.withUnsafeMutableBufferPointer from swift 2 to swift 3? »
I want to use code from this link which is in swif 2 public protocol SGLImageType { typealias Element var width:Int {get} var height:Int ...
(1) odpowiedzi
2017-04-14 15:04 Firebase configuration fails - Swift »
In my application I'm successfully using Firebase and in AppDelegate I do the setup: // ### Initialize Firebase FIRApp.configure() Now I do some un...
(3) odpowiedzi
2017-04-14 09:04 Firebase Notification Integration on cocoa os x application »
I am currently doing a R & d to add firebase to mac os x application. I found a pod 'FirebaseOSX' and install it, but i can't find how to integra...
(1) odpowiedzi
2017-04-13 12:04 How nil can call functions in Objective-C and Swift »
nil is similar but different concept in Objective-C and Swift. In Objective-C nil presents absense of Objective-C Object. in details, id is pointer ...
(1) odpowiedzi
2017-04-13 12:04 How do I optimize chaining async requests in Swift »
I have code that do requests chaining like A->B->C and I am using URLSession all requests are done in right order and with expected behavior. But i am...
(2) odpowiedzi
2017-04-13 10:04 Cannot disable, then reenable touch, after an SKAction animation »
I am working on an interactive, animated scene. I want all touches on the scene to be disabled on entry. Then, once the objects (which are subclassed ...
(1) odpowiedzi
2017-04-13 00:04 Share image with hashtag via UIActivityViewController (Twitter, Facebook, Instagram) »
I am attempting to share an image with a hashtag using UIActivityViewController and I am encountering some strange behavior when attempting to share t...
(1) odpowiedzi
2017-04-12 20:04 Measure strong/weak ARC references impact - Impact on execution time »
I was wondering if (and how much) strong/weak references management have an impact on code execution, especially when freeing objects to which many cl...
(1) odpowiedzi
2017-04-12 17:04 Setting lazy static variable first initializes then assigns? »
I realize that static variables are implicitly lazy, which is really great. Doing the below will not create the instance until it's first called: sta...
(1) odpowiedzi
2017-04-12 12:04 Are "&&" and "," the same in Swift? »
As the title says, I just came across a case where if && (AND) and , give the same result in Swift. I tested the code below: let a = 5 let b ...
(1) odpowiedzi
2017-04-12 06:04 Getting all possible ranges by matching using regular expressions in Swift »
I'm playing with the following code in Swift to build an appropriate regex for an application: let regExp = "-(\\([0-9.a-z()+-×÷√^₁₀²³/]+\\...
(1) odpowiedzi
2017-04-11 19:04 Can a single .swift file in Xcode contain entire source code of an iOS app? »
In other words, can Swift code in Xcode behave like it does in a Playground file? ...
(3) odpowiedzi
2017-04-11 18:04 AVAudioRecorder currentTime giving bad values »
I have a setup as follows, testing on an iPhone 5s with iOS 10.3, both in and out of debug. An AVAudioRecorder fires record(forDuration: 5.0) A CADi...
(1) odpowiedzi
2017-04-11 13:04 How to import swift file to obective-c class, for class delegation? »
I’m developing my with swift, Now few of my older files are written in objective-c. So I create bridge for class communication. One of my delegate ...
(3) odpowiedzi
2017-04-11 10:04 Wrapping static library in Cocoa Touch Framework »
I have a fat static library with 2 architecture slices (armv7, arm64). I'm trying to make it work with swift and wrap it into Cocoa Touch Framework. ...
(1) odpowiedzi
2017-04-10 22:04 Is there a way to throw errors from asynchronous closures in Swift 3? »
I’m executing some functions in a test asynchronously using a Dispatch Queue like this: let queue: DispatchQueue = DispatchQueue.global(qos: Dispat...
(2) odpowiedzi
2017-04-10 20:04 Swift 3 - How to keep my timer counting even in background? »
I want to keep going my timer even if I'm in background when HOME button is pressed. How can I do that ? Here my working code, it's a timer for Wor...
(1) odpowiedzi
2017-04-10 03:04 When using a nav and tab bar controller, why does didMove only fire once? »
This is the setup I'm trying to work with: As you can see, the structure goes like this: Navigation Controller > View Controller > Tab Bar Contro...
(0) odpowiedzi
2017-04-09 21:04 Using a timer vs update to run game SpriteKit »
I am curious what to use for my game. A timer: let goodFPS = SKAction.wait(forDuration: 0.01666) let mainGameRunner = SKAction.run { //my code is he...
(3) odpowiedzi
2017-04-09 19:04 How to turn on high-legibility alternates for system font in iOS? »
I would like to activate high-legibility alternate style set for San Francisco font in iOS, using Swift 3.1. Antonio Cavedoni, a former Apple type ...
(0) odpowiedzi
2017-04-09 09:04 Save rethrowing function as a non-throwing closure »
As far as I understand, rethrows essentially creates two functions from a single declaration/definition, like so: func f(_ c: () throws -> Void) r...
(1) odpowiedzi
2017-04-08 13:04 How to create a Pixel_8 buffer in swift »
I'm trying to convert objective-c code in swift, and I'm completely blocked looking for a way to get a Pixel_8 buffer (that I'd normally create using ...
(2) odpowiedzi
2017-04-08 12:04 Does my Mac App need to apply Server Entitlement Key? »
My mac app has a built-in AirPlay function for streaming video file from my app to Apple TV, so do I need a Server Access entitlement key ("com.apple....
(1) odpowiedzi
2017-04-08 09:04 Login with Google Drive is not getting authorized »
I'm refering the link https://developers.google.com/drive/v3/web/quickstart/ios#step_1_turn_on_the_api_name To authenticate google drive with my ap...
(2) odpowiedzi
2017-04-08 09:04 How can we remove every characters other than numbers, dot and colon in swift? »
I am stuck at getting a string from html body <html><head> <title>Uaeexchange Mobile Application</title></head><body...
(3) odpowiedzi
2017-04-08 00:04 Weird bug returning a CGSize in UICollectionView sizeForItemAtIndexPath »
I have variable widths in my UICollectionView and in my sizeForItemAtIndexPath function, I ultimately return a CGSize func collectionView(_ collectio...
(3) odpowiedzi
2017-04-07 17:04 Play/Pause and Elapsed Time not updating in iOS command center properly »
I have a video player that can play from the iOS command center and lock screen. When I toggle a play/pause button in my app, it should update the pla...
(1) odpowiedzi
2017-04-07 12:04 Displaying a large amount of data from Core Data »
I have such a task in front of me: there are more than 10,000 records in the database, I need to display them in the table view, but I can not take al...
(1) odpowiedzi
2017-04-07 12:04 Fetching http request with query in Alamofire in Swift »
I'm trying to fetch data from mLab service from my mongodb database. I can make the request successfully from browser and get data with code below. ...
(1) odpowiedzi
2017-04-07 10:04 How can we pass type, page_token,sorting etc… in google place IOS API? »
With Web API we can pass type like "&type=restaurant|cafe|bar”&pagetoken=“mynextpagetoken” But with mobile API(GMSPlacesClient class) ...
(1) odpowiedzi