# 🎤 General Discussion

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

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

**Page:** 65

---

## [User-Agent in URLSession](https://forums.kodeco.com/t/user-agent-in-urlsession/38816)

<div class="topic-metadata">

**Author:** [@stevewebber](https://forums.kodeco.com/u/stevewebber)\
**Replies:** 2\
**Last updated:** [January 25, 2018, 12:56pm UTC](https://forums.kodeco.com/t/user-agent-in-urlsession/38816 "2018-01-25T12:56:58Z")

</div>

How does one set the User-Agent header field before initiating a URLSession? I need to write an app that looks like a request is from a macOS.

---

## [SiriKit Reservation](https://forums.kodeco.com/t/sirikit-reservation/38508)

<div class="topic-metadata">

**Author:** [@saudqatar](https://forums.kodeco.com/u/saudqatar)\
**Replies:** 1\
**Last updated:** [January 25, 2018, 4:11am UTC](https://forums.kodeco.com/t/sirikit-reservation/38508 "2018-01-25T04:11:05Z")

</div>

I have a booking app for a single service. Can I use Sirikit Restaurant Reservation without using maps connect? for example I have a mobile salon which requires: Number of people user location user details Time and…

---

## [App to open in Spanish when participant clicks on Spanish Website in iOS](https://forums.kodeco.com/t/app-to-open-in-spanish-when-participant-clicks-on-spanish-website-in-ios/38856)

<div class="topic-metadata">

**Author:** [@durul](https://forums.kodeco.com/u/durul)\
**Replies:** 1\
**Last updated:** [January 25, 2018, 1:28am UTC](https://forums.kodeco.com/t/app-to-open-in-spanish-when-participant-clicks-on-spanish-website-in-ios/38856 "2018-01-25T01:28:51Z")

</div>

Hello Guys, I have a project and this project support two languages English and Spanish. If the user has Spanish languages selected phone, the app opens Spanish. The same cycle works for English also. Second, We have …

---

## [Architecture problem: how to deal with ActivityViewControllers when request errors happen](https://forums.kodeco.com/t/architecture-problem-how-to-deal-with-activityviewcontrollers-when-request-errors-happen/38830)

<div class="topic-metadata">

**Author:** [@anon18003112](https://forums.kodeco.com/u/anon18003112)\
**Replies:** 1\
**Last updated:** [January 24, 2018, 2:18pm UTC](https://forums.kodeco.com/t/architecture-problem-how-to-deal-with-activityviewcontrollers-when-request-errors-happen/38830 "2018-01-24T14:18:13Z")

</div>

That’s a confusing situation for me. Hopefully not for you. While loading data for a UIViewController, I present a view on the top of my ViewController with a “loading” message. I call those views “ActivityViewControlle…

---

## [Deferring Location Updates not working](https://forums.kodeco.com/t/deferring-location-updates-not-working/38794)

<div class="topic-metadata">

**Author:** [@anand4u](https://forums.kodeco.com/u/anand4u)\
**Replies:** 3\
**Last updated:** [January 24, 2018, 3:05am UTC](https://forums.kodeco.com/t/deferring-location-updates-not-working/38794 "2018-01-24T03:05:12Z")

</div>

Do any of you guys experience the same issue that i’ve been experiencing. Here is my code: let locationManager : CLLocationManager = CLLocationManager() locationManager.delegate = self locationManager.desiredAccuracy …

---

## [Changing wall color when raycast hit vive](https://forums.kodeco.com/t/changing-wall-color-when-raycast-hit-vive/38819)

<div class="topic-metadata">

**Author:** [@kumaresh](https://forums.kodeco.com/u/kumaresh)\
**Replies:** 1\
**Last updated:** [January 23, 2018, 5:35pm UTC](https://forums.kodeco.com/t/changing-wall-color-when-raycast-hit-vive/38819 "2018-01-23T17:35:11Z")

</div>

Hello How to change the wall color using raycast hit method in vive controller when I press the trigger button in the vive controller the color needs to change how to do ? here I am using Player Prefab… sample code fo…

---

## [Build / Run Xcode takes more and more time](https://forums.kodeco.com/t/build-run-xcode-takes-more-and-more-time/38133)

<div class="topic-metadata">

**Author:** [@luclannoo](https://forums.kodeco.com/u/luclannoo)\
**Replies:** 11\
**Last updated:** [January 23, 2018, 3:37am UTC](https://forums.kodeco.com/t/build-run-xcode-takes-more-and-more-time/38133 "2018-01-23T03:37:21Z")

</div>

Hello, I’m very unthusiastic about the courses but since 4 days my MacBook and related Xcode is extremely slow. Typically to build and run the CollectionView exercise at lesson 3 it takes more then 15 minutes. Does an…

---

## [Updating Game to Support iPhone X](https://forums.kodeco.com/t/updating-game-to-support-iphone-x/38659)

<div class="topic-metadata">

**Author:** [@saycod](https://forums.kodeco.com/u/saycod)\
**Replies:** 1\
**Last updated:** [January 23, 2018, 3:20am UTC](https://forums.kodeco.com/t/updating-game-to-support-iphone-x/38659 "2018-01-23T03:20:04Z")

</div>

I ran into an issue updating my game to be compatible with iPhone X. Currently, I have a single .sks file for the game scene which adapts properly to all iPhone devices and iPad devices. But, once I test it on iPhone X,…

---

## [coreData not fetching](https://forums.kodeco.com/t/coredata-not-fetching/38777)

<div class="topic-metadata">

**Author:** [@timswift](https://forums.kodeco.com/u/timswift)\
**Replies:** 2\
**Last updated:** [January 23, 2018, 3:01am UTC](https://forums.kodeco.com/t/coredata-not-fetching/38777 "2018-01-23T03:01:43Z")

</div>

My code below is using core data to add entities to a tableview. The problem is that when I hit the button to add a new entry the data is not displayed on the tableview. But if I quit the simulator and re install the app…

---

## [How to create a mini map in a RPG game](https://forums.kodeco.com/t/how-to-create-a-mini-map-in-a-rpg-game/38698)

<div class="topic-metadata">

**Author:** [@luckybob](https://forums.kodeco.com/u/luckybob)\
**Replies:** 3\
**Last updated:** [January 23, 2018, 12:49am UTC](https://forums.kodeco.com/t/how-to-create-a-mini-map-in-a-rpg-game/38698 "2018-01-23T00:49:49Z")

</div>

Hi, I’m currently working on a dungeon crawler type of game using SpriteKit and the game map is created using SKTileMapNode. Each tile is 32x32pixel, and each game level is around 100x100 tiles. Since the game levels ar…

---

## [Xcode 9 App Localizzation Problem](https://forums.kodeco.com/t/xcode-9-app-localizzation-problem/38790)

<div class="topic-metadata">

**Author:** [@rufy](https://forums.kodeco.com/u/rufy)\
**Replies:** 1\
**Last updated:** [January 23, 2018, 12:46am UTC](https://forums.kodeco.com/t/xcode-9-app-localizzation-problem/38790 "2018-01-23T00:46:40Z")

</div>

Hi guys, I’m trying to localize my app in English and Japanese. but when I try the app in device happen one strange thing: the app is in foreign language if only I change the region of my iPhone. e.g. the region and the…

---

## [How to access three edittext value in tableview](https://forums.kodeco.com/t/how-to-access-three-edittext-value-in-tableview/38789)

<div class="topic-metadata">

**Author:** [@bibhu065](https://forums.kodeco.com/u/bibhu065)\
**Replies:** 1\
**Last updated:** [January 23, 2018, 12:42am UTC](https://forums.kodeco.com/t/how-to-access-three-edittext-value-in-tableview/38789 "2018-01-23T00:42:58Z")

</div>

How to access three edit text value from each section row of the table view from user interface menu?

---

## [Background processing when app is not running](https://forums.kodeco.com/t/background-processing-when-app-is-not-running/38073)

<div class="topic-metadata">

**Author:** [@mkeramat](https://forums.kodeco.com/u/mkeramat)\
**Replies:** 2\
**Last updated:** [January 22, 2018, 7:50pm UTC](https://forums.kodeco.com/t/background-processing-when-app-is-not-running/38073 "2018-01-22T19:50:35Z")

</div>

Is it possible to wake up an iOS app (when its NOT Running) to execute couple of background tasks (i.e communicate with a Bluetooth LE device and upload the data to a web server) without user interaction? I have conside…

---

## [Vapour v Perfect](https://forums.kodeco.com/t/vapour-v-perfect/28851)

<div class="topic-metadata">

**Author:** [@jonny](https://forums.kodeco.com/u/jonny)\
**Replies:** 1\
**Last updated:** [January 21, 2018, 8:32pm UTC](https://forums.kodeco.com/t/vapour-v-perfect/28851 "2018-01-21T20:32:13Z")

</div>

Hi @raywenderlich Great to see multiple Server Side Swift products with tutorials. In your work so far which one do you prefer and why? If that is too direct a question as I know some of the tutorials are sponsored, per…

---

## [How to use JSON2HTML in Swift?](https://forums.kodeco.com/t/how-to-use-json2html-in-swift/26077)

<div class="topic-metadata">

**Author:** [@javid94](https://forums.kodeco.com/u/javid94)\
**Replies:** 1\
**Last updated:** [January 21, 2018, 8:08pm UTC](https://forums.kodeco.com/t/how-to-use-json2html-in-swift/26077 "2018-01-21T20:08:20Z")

</div>

let jsfile1 = try!String(contentsOfFile: Bundle.main.path(forResource: “json2html”, ofType: “js”)!) func loadJS() { var getData={} var context = JSContext() var valSwiftyJson:JSON = \[:\] var test = context?.evaluate…

---

## [How to rebuild a core data stack?](https://forums.kodeco.com/t/how-to-rebuild-a-core-data-stack/27446)

<div class="topic-metadata">

**Author:** [@timdavey](https://forums.kodeco.com/u/timdavey)\
**Replies:** 1\
**Last updated:** [January 21, 2018, 7:18pm UTC](https://forums.kodeco.com/t/how-to-rebuild-a-core-data-stack/27446 "2018-01-21T19:18:48Z")

</div>

I’m having trouble rebuilding my core data stack (using Swift 3). My data is essentially an offline cache, never a source of truth, and is read-only, so when I update my model I should be able to just tear down my core d…

---

## [Designing the below screen adaptively](https://forums.kodeco.com/t/designing-the-below-screen-adaptively/37555)

<div class="topic-metadata">

**Author:** [@sylendra2426](https://forums.kodeco.com/u/sylendra2426)\
**Replies:** 1\
**Last updated:** [January 20, 2018, 7:01pm UTC](https://forums.kodeco.com/t/designing-the-below-screen-adaptively/37555 "2018-01-20T19:01:49Z")

</div>

Hi Friends, How to create the screen attached above with adaptive using the xcode…

---

## [Detecting nodes near the hit node](https://forums.kodeco.com/t/detecting-nodes-near-the-hit-node/38256)

<div class="topic-metadata">

**Author:** [@maxshuty](https://forums.kodeco.com/u/maxshuty)\
**Replies:** 1\
**Last updated:** [January 20, 2018, 6:31pm UTC](https://forums.kodeco.com/t/detecting-nodes-near-the-hit-node/38256 "2018-01-20T18:31:41Z")

</div>

Hello all, I’m struggling to figure out the best way to handle this scenario. Basically what I have now is a scene with a sphere made of cubes like this: At the end of the day I jus…

---

## [Apple Photo App extracting photo meta data](https://forums.kodeco.com/t/apple-photo-app-extracting-photo-meta-data/38695)

<div class="topic-metadata">

**Author:** [@berberich](https://forums.kodeco.com/u/berberich)\
**Replies:** 1\
**Last updated:** [January 20, 2018, 5:31pm UTC](https://forums.kodeco.com/t/apple-photo-app-extracting-photo-meta-data/38695 "2018-01-20T17:31:56Z")

</div>

Years ago I started taking pictures of the audio book dust covers of what I’ve listened to. I used some of the meta data tags to capture Title, Author and have a query in the Photo app where I can subset all the books I’…

---

## [1Password-like menubar](https://forums.kodeco.com/t/1password-like-menubar/35789)

<div class="topic-metadata">

**Author:** [@jerguslejko](https://forums.kodeco.com/u/jerguslejko)\
**Replies:** 1\
**Last updated:** [January 20, 2018, 2:33am UTC](https://forums.kodeco.com/t/1password-like-menubar/35789 "2018-01-20T02:33:27Z")

</div>

I’m trying to create a menubar app that looks/functions like 1Password menubar app. This consists of a search input on the top and a list of items that will be filtered according to the search input on the bottom. I …

---

## [No course materials for Custom Controls in iOS video. (Only a PDF downloads)](https://forums.kodeco.com/t/no-course-materials-for-custom-controls-in-ios-video-only-a-pdf-downloads/38703)

<div class="topic-metadata">

**Author:** [@chrono1081](https://forums.kodeco.com/u/chrono1081)\
**Replies:** 1\
**Last updated:** [January 19, 2018, 3:57am UTC](https://forums.kodeco.com/t/no-course-materials-for-custom-controls-in-ios-video-only-a-pdf-downloads/38703 "2018-01-19T03:57:03Z")

</div>

Hi guys, I was trying to watch the Custom Controls in iOS videos and a starter project is mentioned in the video, however the course materials link only downloads a PDF (in any browser).

---

## [App crashes first time loading on iPad](https://forums.kodeco.com/t/app-crashes-first-time-loading-on-ipad/38561)

<div class="topic-metadata">

**Author:** [@jport1130](https://forums.kodeco.com/u/jport1130)\
**Replies:** 7\
**Last updated:** [January 16, 2018, 1:24pm UTC](https://forums.kodeco.com/t/app-crashes-first-time-loading-on-ipad/38561 "2018-01-16T13:24:21Z")

</div>

The first time I tried to load my app onto my iPad I received this error: Thread 1: Fatal error: Unexpectedly found nil while unwrapping an Optional value. My app stopped in the “numberOfItemsInSection” at the array co…

---

## [Fjalskj fkaljflaf jlajalfHow](https://forums.kodeco.com/t/fjalskj-fkaljflaf-jlajalfhow/38627)

<div class="topic-metadata">

**Author:** [@kkadapa](https://forums.kodeco.com/u/kkadapa)\
**Replies:** 1\
**Last updated:** [January 16, 2018, 9:53pm UTC](https://forums.kodeco.com/t/fjalskj-fkaljflaf-jlajalfhow/38627 "2018-01-16T21:53:43Z")

</div>

as ljfl ajsflajflasjfl asjfaljfaljf alfjalfja sfasf f sljlaf lsjdlsjak lsjldak

---

## [What is causing this EXC\_BAD\_ACCESS error?](https://forums.kodeco.com/t/what-is-causing-this-exc-bad-access-error/38629)

<div class="topic-metadata">

**Author:** [@brower](https://forums.kodeco.com/u/brower)\
**Replies:** 1\
**Last updated:** [January 16, 2018, 9:46pm UTC](https://forums.kodeco.com/t/what-is-causing-this-exc-bad-access-error/38629 "2018-01-16T21:46:33Z")

</div>

I get a EXC\_BAD\_ACCESS error in this code at the end where the constant “line” is declared. At the line that says “let line: CTLine = CTLineCreateWithAttributedString(attrString)”. The exact error says “Thread 2: EXC\_BAD…

---

## [How to clear uiview drawing](https://forums.kodeco.com/t/how-to-clear-uiview-drawing/38576)

<div class="topic-metadata">

**Author:** [@timswift](https://forums.kodeco.com/u/timswift)\
**Replies:** 1\
**Last updated:** [January 16, 2018, 12:10am UTC](https://forums.kodeco.com/t/how-to-clear-uiview-drawing/38576 "2018-01-16T00:10:10Z")

</div>

I am working on a drawing app where the user draws something on a view. On the same view controller I would like to create a button that would erase everything that was on the view and give it a blank slate. How would I …

---

## [When do I use the overlay view and when do I use the overlay renderer?](https://forums.kodeco.com/t/when-do-i-use-the-overlay-view-and-when-do-i-use-the-overlay-renderer/38292)

<div class="topic-metadata">

**Author:** [@brower](https://forums.kodeco.com/u/brower)\
**Replies:** 2\
**Last updated:** [January 15, 2018, 6:17am UTC](https://forums.kodeco.com/t/when-do-i-use-the-overlay-view-and-when-do-i-use-the-overlay-renderer/38292 "2018-01-15T06:17:53Z")

</div>

Why is there both an overlay view class and an overlay renderer class in MapKit? Can I only use one or the other at a time? How do I decide which one to use?

---

## [Any sample bridge like card game for iOS](https://forums.kodeco.com/t/any-sample-bridge-like-card-game-for-ios/34945)

<div class="topic-metadata">

**Author:** [@dng88](https://forums.kodeco.com/u/dng88)\
**Replies:** 2\
**Last updated:** [January 15, 2018, 1:55am UTC](https://forums.kodeco.com/t/any-sample-bridge-like-card-game-for-ios/34945 "2018-01-15T01:55:53Z")

</div>

Trying to find a sample but so far cannot find any starting point. The usual one person game (solitaire) get the cards and there is some python with some basic logic. My last “example” go back to Turbo Bridge which I d…

---

## [Tabbar items language can not change](https://forums.kodeco.com/t/tabbar-items-language-can-not-change/38391)

<div class="topic-metadata">

**Author:** [@durul](https://forums.kodeco.com/u/durul)\
**Replies:** 2\
**Last updated:** [January 14, 2018, 5:16pm UTC](https://forums.kodeco.com/t/tabbar-items-language-can-not-change/38391 "2018-01-14T17:16:10Z")

</div>

Hello Guys, I have interesting problem. I am trying to change tabbar item languages when the user select a different language, the tabbar item language should automatically. But my methods do not work under viewWillAppe…

---

## [Do statement not firing notification (swift4)](https://forums.kodeco.com/t/do-statement-not-firing-notification-swift4/38285)

<div class="topic-metadata">

**Author:** [@zalubski](https://forums.kodeco.com/u/zalubski)\
**Replies:** 1\
**Last updated:** [January 14, 2018, 4:14pm UTC](https://forums.kodeco.com/t/do-statement-not-firing-notification-swift4/38285 "2018-01-14T16:14:47Z")

</div>

First off I am not very familiar with do statements but I think they can be used just like a action button. My code below is a alarm. All I wanted to do is when the alarm goes off for the notification to appear. Thats it…

---

## [What is the best way to delete an object from a filtered array?](https://forums.kodeco.com/t/what-is-the-best-way-to-delete-an-object-from-a-filtered-array/38470)

<div class="topic-metadata">

**Author:** [@jport1130](https://forums.kodeco.com/u/jport1130)\
**Replies:** 9\
**Last updated:** [January 14, 2018, 2:33am UTC](https://forums.kodeco.com/t/what-is-the-best-way-to-delete-an-object-from-a-filtered-array/38470 "2018-01-14T02:33:34Z")

</div>

I have a search bar that allows me to filter through an array. Once I have the results of the filter I would like to be able to delete a object, if necessary. Currently when I try to delete a search result it removes i…

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

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