# 🎤 General Discussion

**URL:** https://forums.kodeco.com/c/general/16.md?page=104

[Latest](https://forums.kodeco.com/latest.md) · [Categories](https://forums.kodeco.com/categories.md) · [Tags](https://forums.kodeco.com/tags.md)

**Page:** 105

---

## [String to Double?](https://forums.kodeco.com/t/string-to-double/13288)

<div class="topic-metadata">

**Author:** [@hcri50](https://forums.kodeco.com/u/hcri50)\
**Replies:** 3\
**Last updated:** [April 14, 2016, 6:21pm UTC](https://forums.kodeco.com/t/string-to-double/13288 "2016-04-14T18:21:41Z")

</div>

let testField: String = “2.25” if let cost = Double(textField.text!) { print("The user entered a value price of \\(cost)") } else { print("Not a valid number: \\(textField.text!)"…

---

## [FMDB Transaction doubt](https://forums.kodeco.com/t/fmdb-transaction-doubt/13368)

<div class="topic-metadata">

**Author:** [@krbaswe](https://forums.kodeco.com/u/krbaswe)\
**Replies:** 0\
**Last updated:** [April 14, 2016, 10:38am UTC](https://forums.kodeco.com/t/fmdb-transaction-doubt/13368 "2016-04-14T10:38:21Z")

</div>

I want to insert bulk rows in FMDB and I am doing this in transaction as below. Can someone plz check and confirm whether I am doing correctly? My doubt is whether to put the loop inside transaction or as it is now… Is…

---

## [Background Fetch](https://forums.kodeco.com/t/background-fetch/13193)

<div class="topic-metadata">

**Author:** [@rehankadir](https://forums.kodeco.com/u/rehankadir)\
**Replies:** 2\
**Last updated:** [April 14, 2016, 7:54am UTC](https://forums.kodeco.com/t/background-fetch/13193 "2016-04-14T07:54:44Z")

</div>

Hello! I’m having trouble using background fetch on swift 2.0 according to the tutorial → https://www.raywenderlich.com/92428/background-modes-ios-swift-tutorial. I get this error: application:performFetchWithCompleti…

---

## [Reverse an animation at any point during the animation loop](https://forums.kodeco.com/t/reverse-an-animation-at-any-point-during-the-animation-loop/11332)

<div class="topic-metadata">

**Author:** [@sir\_walter](https://forums.kodeco.com/u/sir_walter)\
**Replies:** 1\
**Last updated:** [April 14, 2016, 3:10am UTC](https://forums.kodeco.com/t/reverse-an-animation-at-any-point-during-the-animation-loop/11332 "2016-04-14T03:10:10Z")

</div>

I’m currently animating a SKSpriteNode the more “traditional way”: let atlas = SKTextureAtlas (named: "drone") var array = \[String\]() for var i=1; i \<= 109; i++ { let nameString = String(format: "drone%i", i) …

---

## [Audio Compression](https://forums.kodeco.com/t/audio-compression/11649)

<div class="topic-metadata">

**Author:** [@perrbear](https://forums.kodeco.com/u/perrbear)\
**Replies:** 1\
**Last updated:** [April 14, 2016, 3:05am UTC](https://forums.kodeco.com/t/audio-compression/11649 "2016-04-14T03:05:54Z")

</div>

I am creating a game that uses a lot of sound bites (15M of mp3). Apple best practices talk about compressed formats. If I use “afconvert -f AIFC -d ima4 sound.wav” to compress any of the files, I get one almost four tim…

---

## [Combine two tutorials / Chat&Timer / Match two Users randomly](https://forums.kodeco.com/t/combine-two-tutorials-chat-timer-match-two-users-randomly/13277)

<div class="topic-metadata">

**Author:** [@appswithheart](https://forums.kodeco.com/u/appswithheart)\
**Replies:** 1\
**Last updated:** [April 14, 2016, 1:37am UTC](https://forums.kodeco.com/t/combine-two-tutorials-chat-timer-match-two-users-randomly/13277 "2016-04-14T01:37:16Z")

</div>

Hey everyone, i’m really happy that i found this awesome website. I followed most of the tutorials here and tried to mix them up to get an app that does the following: Secretly User Authentication Open Chat via JSQMes…

---

## [Opinions on tracking IAP subscription expiry dates](https://forums.kodeco.com/t/opinions-on-tracking-iap-subscription-expiry-dates/10802)

<div class="topic-metadata">

**Author:** [@ste23](https://forums.kodeco.com/u/ste23)\
**Replies:** 3\
**Last updated:** [April 14, 2016, 12:52am UTC](https://forums.kodeco.com/t/opinions-on-tracking-iap-subscription-expiry-dates/10802 "2016-04-14T00:52:28Z")

</div>

I’m finalising quite a simple app that carries out calculations and projections of sales volume. I plan to allow ‘unlimited use’ of the app for £0.99 a month. The free version will allow a user to carry out 3 calculati…

---

## [Loading Screen (Not the Splash Screen)](https://forums.kodeco.com/t/loading-screen-not-the-splash-screen/11384)

<div class="topic-metadata">

**Author:** [@sir\_walter](https://forums.kodeco.com/u/sir_walter)\
**Replies:** 2\
**Last updated:** [April 13, 2016, 3:03am UTC](https://forums.kodeco.com/t/loading-screen-not-the-splash-screen/11384 "2016-04-13T03:03:46Z")

</div>

How do you know when to use a loading screen before the game starts? How do you know when you have so many assets that a loading screen is necessary? Do you put it in the scene file? or somewhere else? Thanks for the he…

---

## [Hi Ho Silver ... Swift on Windows](https://forums.kodeco.com/t/hi-ho-silver-swift-on-windows/13279)

<div class="topic-metadata">

**Author:** [@graeme](https://forums.kodeco.com/u/graeme)\
**Replies:** 0\
**Last updated:** [April 12, 2016, 10:48pm UTC](https://forums.kodeco.com/t/hi-ho-silver-swift-on-windows/13279 "2016-04-12T22:48:50Z")

</div>

Swift programmers, of course, can do business on Windows using the free distribution of “swift” packaged as “Silver”. Again, as with Linux, there are a few tricks. Install the community edition of Visual Studio 2015 bef…

---

## [Localize hosted content In App Purchase \[iOS 6 by Tutorials\]](https://forums.kodeco.com/t/localize-hosted-content-in-app-purchase-ios-6-by-tutorials/13238)

<div class="topic-metadata">

**Author:** [@coopersita](https://forums.kodeco.com/u/coopersita)\
**Replies:** 0\
**Last updated:** [April 12, 2016, 5:16pm UTC](https://forums.kodeco.com/t/localize-hosted-content-in-app-purchase-ios-6-by-tutorials/13238 "2016-04-12T17:16:39Z")

</div>

I’ve successfully implemented the chapter on hosted content for in-app purchases, but I’m having some questions about how to localize the content. I found it easy enough to click on the “Localize” button in Xcode to loc…

---

## [Android ProgressDialog in Swift](https://forums.kodeco.com/t/android-progressdialog-in-swift/12875)

<div class="topic-metadata">

**Author:** [@krbaswe](https://forums.kodeco.com/u/krbaswe)\
**Replies:** 2\
**Last updated:** [April 11, 2016, 8:53pm UTC](https://forums.kodeco.com/t/android-progressdialog-in-swift/12875 "2016-04-11T20:53:26Z")

</div>

Need help in implementing Android like ProgressDialog Animation + Message Should not allow to tap background making it dimmer.

---

## [Production Code](https://forums.kodeco.com/t/production-code/12188)

<div class="topic-metadata">

**Author:** [@graeme](https://forums.kodeco.com/u/graeme)\
**Replies:** 2\
**Last updated:** [April 11, 2016, 2:24pm UTC](https://forums.kodeco.com/t/production-code/12188 "2016-04-11T14:24:36Z")

</div>

Production Code in Swift? I would like to see some industrial, production code, in Swift, and, preferably, done outside XCode. I avoid IDE development until I am very comfortable with the language. Sometimes the IDE su…

---

## [Build Swift on Linux? Not just yet](https://forums.kodeco.com/t/build-swift-on-linux-not-just-yet/13089)

<div class="topic-metadata">

**Author:** [@graeme](https://forums.kodeco.com/u/graeme)\
**Replies:** 0\
**Last updated:** [April 11, 2016, 2:43am UTC](https://forums.kodeco.com/t/build-swift-on-linux-not-just-yet/13089 "2016-04-11T02:43:21Z")

</div>

I have carefully followed a number of “helpful” sets of instructions for building swift programs on Linux, and failed. Again and again. Now, I have trawled the Swift.org site, and concluded two things: 1 Several of the…

---

## [Design implementation for a RESTful JSON parser](https://forums.kodeco.com/t/design-implementation-for-a-restful-json-parser/13063)

<div class="topic-metadata">

**Author:** [@jonny](https://forums.kodeco.com/u/jonny)\
**Replies:** 1\
**Last updated:** [April 10, 2016, 10:35pm UTC](https://forums.kodeco.com/t/design-implementation-for-a-restful-json-parser/13063 "2016-04-10T22:35:08Z")

</div>

Hi Similar to my other question, I’m working at building essentially a web service to display data from my own JSON API. I feel that is a decent complexity to start of with learning swift and the iOS development. I’ve m…

---

## [Making login system](https://forums.kodeco.com/t/making-login-system/13033)

<div class="topic-metadata">

**Author:** [@bikashmainali](https://forums.kodeco.com/u/bikashmainali)\
**Replies:** 1\
**Last updated:** [April 10, 2016, 10:07pm UTC](https://forums.kodeco.com/t/making-login-system/13033 "2016-04-10T22:07:03Z")

</div>

how can we create a login system that can actually login to actual website that is not owned by us. We want to get username and password from the user and try to login to the website like github. and be able to show all …

---

## [FMDB Transaction](https://forums.kodeco.com/t/fmdb-transaction/12880)

<div class="topic-metadata">

**Author:** [@krbaswe](https://forums.kodeco.com/u/krbaswe)\
**Replies:** 0\
**Last updated:** [April 8, 2016, 7:37pm UTC](https://forums.kodeco.com/t/fmdb-transaction/12880 "2016-04-08T19:37:20Z")

</div>

How to call FMDB Transaction in Swift?

---

## [Connect UITextView in Nib to ViewController](https://forums.kodeco.com/t/connect-uitextview-in-nib-to-viewcontroller/12002)

<div class="topic-metadata">

**Author:** [@clairesoem](https://forums.kodeco.com/u/clairesoem)\
**Replies:** 2\
**Last updated:** [April 7, 2016, 5:39am UTC](https://forums.kodeco.com/t/connect-uitextview-in-nib-to-viewcontroller/12002 "2016-04-07T05:39:30Z")

</div>

I’m trying to connect a UITextView in a Nib to the ViewController - it’s displayed as part of a UITableViewCell. I can’t work out how I can pass the text inserted by the user to the ViewController when a button is press…

---

## [Adding MKPolyline](https://forums.kodeco.com/t/adding-mkpolyline/12616)

<div class="topic-metadata">

**Author:** [@jdlace](https://forums.kodeco.com/u/jdlace)\
**Replies:** 0\
**Last updated:** [April 6, 2016, 9:22pm UTC](https://forums.kodeco.com/t/adding-mkpolyline/12616 "2016-04-06T21:22:55Z")

</div>

I’m having some trouble adding an MKPolyline to my mapView. I’m trying to add a simply overlay of a blue line that traces changes in the current location. Here is the code: //CLLocationManagerDelegate methods func loca…

---

## [FMDB WHERE clause](https://forums.kodeco.com/t/fmdb-where-clause/12518)

<div class="topic-metadata">

**Author:** [@krbaswe](https://forums.kodeco.com/u/krbaswe)\
**Replies:** 0\
**Last updated:** [April 6, 2016, 11:28am UTC](https://forums.kodeco.com/t/fmdb-where-clause/12518 "2016-04-06T11:28:09Z")

</div>

Hi Could not retrieve row with WHERE but I can retrieve all rows. Plz check code. func retrieveData() { let contactDB = FMDatabase(path: databasePath as String) if contactDB.open() { …

---

## [Help with reconnecting my prototype cells](https://forums.kodeco.com/t/help-with-reconnecting-my-prototype-cells/12283)

<div class="topic-metadata">

**Author:** [@jonny](https://forums.kodeco.com/u/jonny)\
**Replies:** 1\
**Last updated:** [April 5, 2016, 9:56pm UTC](https://forums.kodeco.com/t/help-with-reconnecting-my-prototype-cells/12283 "2016-04-05T21:56:13Z")

</div>

Hi I have recently restarted learning iOS and I built a little demo tab bar app using some of the tutorials here. I then realized I’d forgot to include core data as it isn’t an option for tabbed apps. So I started from …

---

## [NSDate Need help please](https://forums.kodeco.com/t/nsdate-need-help-please/12278)

<div class="topic-metadata">

**Author:** [@hcri50](https://forums.kodeco.com/u/hcri50)\
**Replies:** 1\
**Last updated:** [April 5, 2016, 6:59pm UTC](https://forums.kodeco.com/t/nsdate-need-help-please/12278 "2016-04-05T18:59:39Z")

</div>

MyPlayground I have uploaded my PlayGround to see why my var startDate: NSDate? var startDateFromString: String? startDateFromString = “2016-04-12 17:42:10 +0000” print(startDateFromString) var formatter = NSDateF…

---

## [Swift PDF search and markup tutorial](https://forums.kodeco.com/t/swift-pdf-search-and-markup-tutorial/9965)

<div class="topic-metadata">

**Author:** [@tanner3068](https://forums.kodeco.com/u/tanner3068)\
**Replies:** 2\
**Last updated:** [April 5, 2016, 12:02am UTC](https://forums.kodeco.com/t/swift-pdf-search-and-markup-tutorial/9965 "2016-04-05T00:02:41Z")

</div>

Is there any tutorials or help on the site for applications that display PDFs along with search and markup, and page numbering etc etc. I have not found any in my searches. I have found plenty of support online for Obje…

---

## [Insert Bulk json to core data](https://forums.kodeco.com/t/insert-bulk-json-to-core-data/12087)

<div class="topic-metadata">

**Author:** [@krbaswe](https://forums.kodeco.com/u/krbaswe)\
**Replies:** 2\
**Last updated:** [April 4, 2016, 3:09pm UTC](https://forums.kodeco.com/t/insert-bulk-json-to-core-data/12087 "2016-04-04T15:09:02Z")

</div>

Need help in inserting 10000 json records to core data in swift.

---

## [Mac Os screen-saver](https://forums.kodeco.com/t/mac-os-screen-saver/12027)

<div class="topic-metadata">

**Author:** [@cajunesque](https://forums.kodeco.com/u/cajunesque)\
**Replies:** 1\
**Last updated:** [April 4, 2016, 2:22pm UTC](https://forums.kodeco.com/t/mac-os-screen-saver/12027 "2016-04-04T14:22:36Z")

</div>

Been reading about Cocos2d and SpriteKit on here to get the requisite knowledge to write a screen saver. Which of these two libraries (or perhaps another) is the best way to go for a boucing ball (i.e. bouncing around of…

---

## [Accepting payments](https://forums.kodeco.com/t/accepting-payments/12029)

<div class="topic-metadata">

**Author:** [@marcosoul](https://forums.kodeco.com/u/marcosoul)\
**Replies:** 1\
**Last updated:** [April 4, 2016, 9:42am UTC](https://forums.kodeco.com/t/accepting-payments/12029 "2016-04-04T09:42:41Z")

</div>

I am writing an iOS app to mimic the functionality that I already have on my website. The website does not sell products. Instead, it sells services that are consumed over the phone or chat in realtime. In order to purch…

---

## [Can not read NSDate from Core Data](https://forums.kodeco.com/t/can-not-read-nsdate-from-core-data/12007)

<div class="topic-metadata">

**Author:** [@hcri50](https://forums.kodeco.com/u/hcri50)\
**Replies:** 1\
**Last updated:** [April 3, 2016, 9:16pm UTC](https://forums.kodeco.com/t/can-not-read-nsdate-from-core-data/12007 "2016-04-03T21:16:09Z")

</div>

Xcode here I am able to safe my NSDate to SQLite but when I to call it up, it is nil. My two other variables are being able to be displayed with no problem. But for some reason, I can not display my NSDate. Can someon…

---

## [Chain of animation of different layers](https://forums.kodeco.com/t/chain-of-animation-of-different-layers/10926)

<div class="topic-metadata">

**Author:** [@rufy](https://forums.kodeco.com/u/rufy)\
**Replies:** 3\
**Last updated:** [April 2, 2016, 1:37pm UTC](https://forums.kodeco.com/t/chain-of-animation-of-different-layers/10926 "2016-04-02T13:37:15Z")

</div>

Hi everyone, I’m trying to pars an SVG file that represent an Kanji (japanese ideogram) using the framework SVGKit. parsing the file I’m able to get path and create for each path an CAShapeLayer. I’m able to animate th…

---

## ["Show" segue not sliding in from right side (only from bottom)](https://forums.kodeco.com/t/show-segue-not-sliding-in-from-right-side-only-from-bottom/10718)

<div class="topic-metadata">

**Author:** [@frankieshakes](https://forums.kodeco.com/u/frankieshakes)\
**Replies:** 2\
**Last updated:** [April 1, 2016, 7:55pm UTC](https://forums.kodeco.com/t/show-segue-not-sliding-in-from-right-side-only-from-bottom/10718 "2016-04-01T19:55:19Z")

</div>

Hi there, I’m a bit stumped with an issue I’m having and am wondering if anybody could chime in with some possible workarounds/fixes. I’ve got an application that’s set up using Storyboards. I’m running into a problem …

---

## [Watch Connectivity - how to handle existing todo app?](https://forums.kodeco.com/t/watch-connectivity-how-to-handle-existing-todo-app/11757)

<div class="topic-metadata">

**Author:** [@destroplayer](https://forums.kodeco.com/u/destroplayer)\
**Replies:** 0\
**Last updated:** [April 1, 2016, 4:42pm UTC](https://forums.kodeco.com/t/watch-connectivity-how-to-handle-existing-todo-app/11757 "2016-04-01T16:42:58Z")

</div>

Hi, it’s first topic in watchOS forum! :smiley: I should be rewarded :wink: Back to the question. I have existing todo app on my iPhone. Now I want to create watchOS 2 app to extend it. I want to allow user to check or…

---

## [Losing Hair - UIBarButton won't work after dismissing ViewController](https://forums.kodeco.com/t/losing-hair-uibarbutton-wont-work-after-dismissing-viewcontroller/11446)

<div class="topic-metadata">

**Author:** [@emanleet](https://forums.kodeco.com/u/emanleet)\
**Replies:** 4\
**Last updated:** [April 1, 2016, 8:29am UTC](https://forums.kodeco.com/t/losing-hair-uibarbutton-wont-work-after-dismissing-viewcontroller/11446 "2016-04-01T08:29:28Z")

</div>

So if the image picker appears and I cancel, everything is fine. However, when I choose an image, and the image picker view dismisses, I can’t select the “pick” button again, it won’t work or print anything to the consol…

[Previous page](https://forums.kodeco.com/c/general/16.md?page=103)

[Next page](https://forums.kodeco.com/c/general/16.md?page=105)
