Questions tagged [swift]

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) ...

-1
votes
0answers
4 views

Google or Apple Maps in iOS application?

I going to build an iOS application, where the user will add his own places to map. Should I use Apple Maps or Google Maps for that?Thank you in advance!Esthi
-1
votes
0answers
8 views

New coder looking for assistance

I am learning and following along with a YouTube course for a war app.In my code on the following line:leftImageView.image=UIImage(named: cardNames[leftNumber])I get an error of Thread 1: ...
0
votes
1answer
5 views

tableview scrolling get the wrong last cell

I am trying to recreate facebook setting pageThis is what facebook setting page looks like: https://gfycat.com/SizzlingSorrowfulGrayfoxI have started a new project, using only 1 tableview, with ...
0
votes
0answers
4 views

Hiding UIPickerView

enter image description hereI want to know how can I hide the two pickerView after choosing from both of them I have tried to use:pickeview.ishidden But it closes them both when I choose just for ...
0
votes
1answer
9 views

collectionViewLayout.collectionViewContentSize getting SIGABRT

I tried following this solution (How to determine height of UICollectionView with FlowLayout) to determine the size of my UICollectionViewLayout in order to size cells accordingly. My code below calls ...
0
votes
0answers
8 views

I can't seem to resolve error for valueForUndefinedKey:]: whereto class is not key value coding-compliant

The error I can't resolve is ... valueForUndefinedKey:]: this class is not key value coding-compliant for the key managedObjectContextHere's the code snippet in question (I think) ... class ...
-1
votes
0answers
16 views

taking photo while recording swift [duplicate]

I am trying to take a picture using snapshotView() of AVCaptureVideoPreviewLayer's view and save it with UIImageWriteToSavedPhotosAlbum. However, the picture ends up being blank (previewLayer's ...
0
votes
0answers
8 views

React Native: calling swift code on button press from js

I am building a mobile application using react native and I dont need to call native code except for handling payments.I have written a swift class that takes care of the payments, however, I cant ...
0
votes
0answers
6 views

NSInternalInconsistenyException: negative sizes are not supported in the flow layout

I'm encountering the runtime exception:NSInternalInconsistenyException: negative sizes are not supported in the flow layouton:collectionView.reloadSections([0], animationStyle: .automatic)I ...
0
votes
0answers
10 views

Build errors for Swift on Ubuntu

I am trying to build a simple swift project on ubuntu and just starting to learn swift. I get the following error when I run swift build.DEVELOPMENT-SNAPSHOT-2018-06-21-a-ubuntu16.10/usr/bin/swift-...
0
votes
2answers
12 views

Why NSSortDescriptor array is put into sortDescriptors?

let dateSort=NSSortDescriptor(key: "created", ascending: false)fetchRequest.sortDescriptors=[dateSort]I think [dateSort] is array transformation of NSSortDescriptor object.(If not, please tell ...
0
votes
1answer
14 views

How to graph dates as X Axis (Swift)

I have struct of objects I'm trying to graph: struct CustomHistoricalSample {var value: Doublevar date: Date}I'm using SwiftChart (lighter weight than Charts) to graph the values. This ...
0
votes
0answers
8 views

Initialize an Instance of DatabaseReference - Firebase with Swift [duplicate]

I am new to Swift and I am currently following a tutorial on how to create a social media app with Firebase. I receive the error: Instance member 'database' cannot be used on type 'DatabaseReference'...
-1
votes
0answers
4 views

Can two WKWebViews be linked via the opener property?

I'm opening a WKWebView from another, and would like the two to be able to communicate with each other via JavaScript.The following code opens two Web views - I can inspect them with the Safari ...
-1
votes
1answer
23 views

Opening a url is failing in Swift

breakpointing inside the callback and logging success shows false.I added itms-apps to my plist: LSApplicationQueriesSchemesand put this in my app delegate:func application(_ app: UIApplication, ...

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