Swift is a general-purpose, open-source programming language developed by Apple Inc. for their platforms and Linux. Use the tag only for questions about language features, or requiring code in Swift. Use the tags [ios], [osx], [watch-os], [tvos], [cocoa-touch], and [cocoa] for (language-agnostic) ...

learn more…| top users | synonyms (3)|swift jobs

-1
votes
0answers
5 views

append all tableviewcells to dictionary

I am attempting to append all the tableview cells to a singleton instance, when I run the program and attempt to print the function SendData(), the application crashes. I think the error in the code ...
0
votes
0answers
4 views

How do I pull this value out of a closure to update a cutom Object in Swift?

I am building am application with a Firestore back end, and I am trying to call a document down with the current user's info for their settings page. I am able to do this no problems when updating an ...
0
votes
0answers
7 views

How to persist JavaScript's localStorage on Android and iOS WebViews?

I built an app entirely in JavaScript, HTML & CSS (no phonegap, cordova, etc) and am attempting to store localStorage data from the WebView on the phone, but am finding that this data doesn't seem ...
-1
votes
0answers
11 views

Swift 4 - NSInvalidArgumentException

I have a problem with my App. Everything works how it should, but if I want to get the user getting to my LogIn Page when he starts the app, there comes a Thread 1: SIGABRT error.So for the very ...
0
votes
0answers
9 views

Update specific columns in realm model

I am trying to update a specific item in a realm model. Here is the problem a user logs in and logs the timeIn then at a later time logs back in and adds the timeOut. when this is done using my ...
-1
votes
0answers
16 views

How to generate code and send the code to another device to open something in swift

How to generate code and send the code to another device to open something in swift.for example the first device made a random number like "3242534"and when we put in the second device open ...
0
votes
1answer
11 views

NSInvalidArgumentException on save an array of custom objects in UserDefaults

I would like to save an array of object in my UserDefaultslet thisAction=action(ts: String(Date().timeStamp()), winner: winner)actions.append(thisAction)UserDefaults.standard.set(actions, forKey:...
0
votes
0answers
6 views

Change anchor pivot of geometry object with ARKit

I am trying to rotate an object (essentially a cube from Maya) 90 degrees one way when tapped, then when tapped again it rotates -90 degrees.The rotation when tapped is working, however the pivot ...
0
votes
0answers
6 views

why does AVAudioPlayer only play some of my base64 files?

I have a bunch of audio files on server with base64 encoded mp3 filesand AVAudioPlayer won't play them all. But I know there good files. is there a better way to play files like this? whats the ...
0
votes
1answer
13 views

SKScene superclass doesn't have a didMove method

Finally cracked open SpriteKit and Swift, but have fallen at first hurdle.The Xcode linter/compiler is telling me that I'm trying to override a superclass method that doesn't exist. It's protesting ...
0
votes
2answers
13 views

How to prettyPrint json response from API call in debugger? [duplicate]

Trying to figure out how to prettyPrint the json value of my response from an API, while debugging:let session=URLSession(configuration: .default)let task=session.dataTask(with: urlRequest) { ...
0
votes
0answers
6 views

How to properly setup sockets using vapor

I am woking on a web socket app using vapor. I am new to using vapor and server side code in general. Right now I am putting all my main code in the main.swift file in the run folder Here is my code:...
0
votes
0answers
13 views

Unable to set UILable attributes for a long title

I'm currently in the process of creating my very first app. I am trying to create a UILabel which will have a section of it in bold in and in different colour. Nonetheless, when I try to add the bold ...
0
votes
0answers
10 views

I am working on a Bluetooth LE application for iOS. I am using the Core Bluetooth framework within iOS to handle all communications

I did implemented Bluetooth delegate methods for finding Services and also for connection and disconnections when I tested it it's working fine mostly all times but when I testing a long time with a ...
0
votes
0answers
19 views

Unwind Segue in Navigation Stack

I'm trying to go back one View Controller in the navigation stack when a user swipes back, but no matter what I do, going back to the previous view controller causes the navigation controller to go ...

153050per page
angop.ao, elkhabar.com, noa.al, afghanpaper.com, bbc.com, time.com, cdc.gov, nih.gov, xnxx.com, github.com,