How to use wildcard in Firebase?

This is my Firebase database structure: ft-records userX@gmail_com 2013-01-01 00:00:00 GMT addedByUser: "userX@gmail.com" notes: "Boooo" time: "2013-01-01 00:00:00 GMT" 2013-01-02 10:00:00 GMT addedByUser: "...
more »

2017-03-19 23:03 (1) Answers

UITextView Hyperlink to Internal WebView

UITextView allows tappable attributedText based hyperlinks.The user interaction with the link can be intercepted by implementing the delegate method. textView:shouldInteractWithURL:in: which has two variations, for iOS 10 and one for iOS 9 as below. ...
more »

2017-03-19 22:03 (1) Answers

CoreData splitting sections by String

I am trying to make headers for my tableview that are separated by date, which is a string. I am using core data and the NSFetchResultsController. I am basically making an agenda which will separate events based on a string date. I cannot find anyw...
more »

2017-03-19 21:03 (2) Answers

Convert eBay timeLeft to Swift 3.0 TimeInterval

I am trying to convert the eBay timeLeft to a TimeInterval. The timeLeft value is returned from eBay as. Apparently the value is ISO 8601 (see link and question below). I believe the timeLeft is an interval relative to when I made the API call. h...
more »

2017-03-19 14:03 (1) Answers

pickerview does not display data from an Array

PikerView in my view controller is not displaying data. It works fine when I test it with some Array literal values. Should I be reloading data somewhere? class FirstViewController: UIViewController, UIPickerViewDelegate, UIPickerViewDataSource {...
more »

2017-03-19 01:03 (2) Answers

Switching function of UIButton

I have a UIButton and I want to case switch between functions of the button. The first case would be to print hello and the second case would be to print yes. And it will restart and keep going over and over again. I tried but I Keep failing. I tried...
more »

2017-03-18 23:03 (1) Answers

Creating a search text field

I want to create a search mechanism for IOS that looks something similar to the homepage of Maps. Basically I want to create a text field. Then, when somebody clicks on it, I want the text field to move to the top while also showing a list of it...
more »

2017-03-18 22:03 (1) Answers

How to make SKScene have fixed width?

I am making a spriteKit based game and wonder if I can make the SKScene fixed width (to make it easier to layout the sprites), and let it resize to the actual screen width while keeping the aspect ratio. Is it possible to achieve this goal and is it ...
more »

2017-03-18 19:03 (2) Answers

Multiple labels and segment views in Auto Layout

i'm having some issues with auto layout. I'm making an exercise app and i've built this display to configure the users units settings but i'm struggling with laying out the constraints. Here's how i want it to look... But here's what i get when i ...
more »

2017-03-18 15:03 (1) Answers

Xib and Storyboard

I have two files xib and storyboard. In the xib file there is a custom menu for working with photos (brightness, saturation, etc.). Variable containing a photo is in ViewController. I created an @IBAction for each button in xib. How to transfer a pho...
more »

2017-03-18 14:03 (1) Answers

SKSpriteNode slows down but shouldn't

I am trying to get my "word" to float across the screen; constant velocity, no impacts, no gravity, no friction. Everything works except the word slows down. Code for creating word: func createWordNode (word: String, atPos: CGPoint) -> SKSprite...
more »

2017-03-18 12:03 (2) Answers

How tables in Settings.app are implemented?

I need similar interface(as Settings has) in my app. Do not want to re-inventing the wheel and wondering are these two UITableViews or one with two sections? How implemented label("Double tapping...") under the neath then? Thank you. ...
more »

2017-03-18 12:03 (1) Answers

How to assign custom class to TableViewController

I am an android developer and I recently started learning Swift. I facing a problem which I am unable to assign a custom class to UITableView in the UIStoryboard. When I write the class name and hit enter then iMac beeps. I have stuck to this problem...
more »

2017-03-18 11:03 (1) Answers

Why Is UITextField.text An Optional?

It starts out as an empty string instead of nil. Even when it is explicitly set to nil it remains an empty string. I don't get it. Perhaps to make it easy to clear by assigning nil? Writing code with it is clunky. var textField = UITextField() pr...
more »

2017-03-17 16:03 (2) Answers

How to stretch image into custom shape (swift3)

The code list below crops the image. I would like the image to be transformed/ stretched and not cropped in the shape. All of the image contents are still in the transformed picture. It will just look different. extension UIImageView { func addMa...
more »

2017-03-17 16:03 (2) Answers

How to create IBDesignable custom view?

I am still improving my programing skills in iOS(Swift). Today I am thinking about creating a UIView subclasses in a good way. I want to create custom view which is: @IBDesignable - I want to see a render of my view in storyboard/xib; Creatable fro...
more »

2017-03-17 15:03 (2) Answers