Data dodania Pytanie
2017-04-22 23:04 How to connect to local Firebase-server via Swift? »
I really would like to write some integration tests by utilising a local installation of firebase-server, that would mimic the realtime database serve...
(1) odpowiedzi
2017-04-22 20:04 Object is nil although it was set in init »
I have an object called navigator, which I set within init. I break on it to make sure it is set. However when an IBAction func, linkButtonClicked, ge...
(1) odpowiedzi
2017-04-22 17:04 Results of sorting an array are unexpected »
I have a an array of objects that contains a date value. I have calculated the date differences and returned the number of days left. Now I am trying ...
(1) odpowiedzi
2017-04-22 02:04 Swift 2: UIImagePickerController returning nil or object that is not UIImage »
I just got an isolated crash report for imagePickerController:picker: didFinishPickingMediaWithInfo with an EXC_BREAKPOINT message (which I understand...
(0) odpowiedzi
2017-04-21 21:04 Holding onto a MTLTexture from a CVImageBuffer causes stuttering »
I'm creating a MTLTexture from CVImageBuffers (from camera and players) using CVMetalTextureCacheCreateTextureFromImage to get a CVMetalTexture and th...
(1) odpowiedzi
2017-04-21 20:04 Deleting UIPicker Data »
We are trying to delete data from a UIPicker view upon selection, however, it is deleting only the first string "Select You're Time" upon election of ...
(0) odpowiedzi
2017-04-21 12:04 Swift Array extension with generic items »
I am using Swift 3.1 and have some generic struct: struct Section<InfoT: Equatable, ItemsT: Equatable> { let info: InfoT? let items: [I...
(2) odpowiedzi
2017-04-21 11:04 .framework file as Carthage (Fabric & Crashlytics example) »
I'm facing now choosing dependency manager for the second version of my project. I've done my homework and check all dependencies that I will need for...
(0) odpowiedzi
2017-04-20 23:04 Is there a public API for card view UI that can be seen across iOS 10? »
The Music app in iOS 10 adopts a new card-like appearance: Now Playing screen slides up, while the view below in the hierarchy zooms out, protruding s...
(2) odpowiedzi
2017-04-20 23:04 How to convert 2 Strings (date and time) into one NSDate object in Eastern Time Zone in Swift »
I have the following code to convert a String with a date like April 22, 2017 and a second String with the time 4:30 PM and I need to convert these 2 ...
(1) odpowiedzi
2017-04-20 22:04 109 Cannot connect to iTunes Store 503 »
All of us a sudden, my in-app purchase functionality has stopped working. I'm still using a sandbox user to make purchases, but this error is happenin...
(0) odpowiedzi
2017-04-20 20:04 Swift: Alternatives to super class methods to generate objects »
I have the following Objective-C code I'm trying to convert to swift: -(id)initWithBook:(NSString*)bookTitle author:(NSString*)author description:(NS...
(2) odpowiedzi
2017-04-20 18:04 UITableView performing row deletion and insertion in a cascading animation manner »
I am interested in deleting a batch of rows from a UITableView using the animation tableView.deleteRows(at: [singleIndexPath], with: .automatic). Howe...
(1) odpowiedzi
2017-04-20 18:04 Closures for UIGestureRecognizers »
I was wondering, whether it is possible to initialize a UIGestureRecognizer with a block, instead of having to create a separate function for it. In S...
(1) odpowiedzi
2017-04-20 14:04 Taking text values from one view controller to another »
So I'm trying to allow users to register through Facebook, so they would click the facebook button, authorize our application, then segue them to a re...
(2) odpowiedzi
2017-04-19 21:04 Integrating Vapor and React »
I'm building a classic database backed, dynamic website, that will allow users to share leads. I'm a little old school, and want to implement my sys...
(0) odpowiedzi
2017-04-19 18:04 Deleting string from UIPicker upon selection »
I am creating a booking app. I am using UIPickers to display open times. I have the pickers fully functional but am not sure how to delete booked time...
(1) odpowiedzi
2017-04-19 15:04 Merging Objective-C project to Swift; what's the best method? »
I want to migrate our large Objective-C-based iOS project to Swift. So what's the best way: Import Swift files into Objective-C, or import the Objecti...
(4) odpowiedzi
2017-04-19 14:04 Better way to define an array for timeline which can be more generic »
I have one array of string how can I define it better than current? It is working for me but kind of looks weird. var arrTimelineEntry = ["12 am", "1...
(2) odpowiedzi
2017-04-19 01:04 Incorporate an image as part of text »
Is there anyway to create text/font with an image and use it as part of a string? I would like to display our coin image before the amount in labels, ...
(1) odpowiedzi
2017-04-19 00:04 How to set the background of a textView to a dark color and continue to see clearly the text selection? »
I would like to set the colors for a textView to dark to avoid to stress the eyes when working on text. If I set for example the field background to ...
(2) odpowiedzi
2017-04-18 19:04 MDQueryGetResultAtIndex and UnsafeRawPointer in Swift 3 »
I'm having trouble exploring the results of a Spotlight search in Swift 3 using MDQuery. I expect MDQueryGetResultAtIndex to yield an MDItem, and in C...
(1) odpowiedzi
2017-04-18 19:04 How to compile Swift from command line for distribution »
I have a single file Swift command line script (it dumps the contents of the menu bar given a process id). To give an idea of the APIs I am using, he...
(1) odpowiedzi
2017-04-18 14:04 Swift 2 iOS 9 and SqlLite »
I'm a new iOS programmer. I'm building a simple app with Swift. Now I want to insert a database to storage information of my app. I can't find any tu...
(3) odpowiedzi
2017-04-18 11:04 Is DispatchSemaphore a good replacement for NSLock? »
I've been using NSLocks to synchronize touchy parts of code, but have been running into issues due to the fact that they must be unlocked from the sam...
(0) odpowiedzi
2017-04-17 18:04 Swift build time too long when the configuration is 'release'? »
I have a open source project and the counter of files in project are more than 40. I build the project when the configuration is Debug and the compil...
(2) odpowiedzi
2017-04-17 16:04 One of two collection views not showing up »
I've been trying to diagnose the problem here but I really can't figure out what went wrong. I had a collection view (of messages) showing up fine, un...
(0) odpowiedzi
2017-04-17 13:04 Formatting text in swift simple issue »
This is very basic but I can't seem to find the answer to do this in swift. I am hard coding a paragraph into my UILabel and I wish to have the smal...
(0) odpowiedzi
2017-04-17 05:04 First day of week Date Extension »
I've written a Date extension that returns the first day of the week for a given date (Mondays counting as the first day). However, it keeps returning...
(1) odpowiedzi
2017-04-16 19:04 Where should I instantiate a location manager if my app uses it throughout its various view controllers? »
I have an app that uses the user's location throughout its various view conrollers, and I've learned that in order to get that location you need to cr...
(1) odpowiedzi
2017-04-16 15:04 Part of UIScrollView doesn't respond to touches »
I have a UIScrollView with 7 UIButtons on it. 5 buttons are working fine but the other two (which the scroll view needs to be scrolled for the button...
(1) odpowiedzi
2017-04-16 13:04 How can i support iOS Version 10.3 with swift 2.3 project »
Good Day, Lastweek i updated my Xcode from 8.2 to 8.3, In my project i used swift 2.3 version. I tried to use multiple version of xcode to my Mac but...
(2) odpowiedzi
2017-04-16 01:04 Why can't I send data between interface controllers for Apple Watch? »
Basically, what I'm trying to do is pass an integer from one interface controller. The slider in the controller "SecondPage" will get an integer value...
(2) odpowiedzi
2017-04-15 15:04 I am learning Swift, and I am creating a simple dice roll app, I can't seem to find what's wrong with the code »
The gist of the app is simple, you press the little dice image, it runs a function that returns a random number from 1-6, the boxes on the screen refl...
(1) odpowiedzi
2017-04-15 15:04 One To Many Relationship setter »
this is my first time working with Core Data in swift. I'm really enjoying it but it's also a challenge making sure my Appdelegate saves etc. The Pro...
(2) odpowiedzi