swift3 Questions

7

My app is live. It was working fine. But somedays before we changed the certificates(for security purpose) on Server. And Now whenever I tried to run my app. It is giving error: The certificate ...
Crime asked 17/1, 2017 at 6:24

10

I'm trying to run my app on device (iphone 5s) and I got this error when the device tries to run my app. Then it only shows white screen. What's wrong with my device? My code works fine when I use ...
Anemochore asked 9/1, 2017 at 13:27

6

I just started with swift 3 and made a simple app in xcode using Swift 3.0 . Now i want to add a third party library using Swift Package Manager . I am following installation method given in this l...
Deathless asked 30/9, 2016 at 15:52

12

I have a UIViewController which have only a UIView which covers 1/3 of the viewController from bottom. Like this I want to present this viewController on an other ViewController. It should appea...
Isoniazid asked 8/2, 2017 at 7:20

9

Solved

I want to align vertically the text inside my UITextView (so it will be in the middle of it). How can i achieve that? I looked up and could not find any answer that could help me. Thanks in advan...
Tical asked 29/12, 2016 at 21:38

8

Solved

I am looking for some up to date help/hints on how to draw simple single line strings around the edge of a circle using Swift2 for iOS9. I see quite dated examples involving old ObjC fragments, and...
Goethe asked 24/9, 2015 at 22:19

14

Solved

I have UICollectionView Horizontal Image listing code. I want to add PageControl when scrolling images will shows, I added pagecontrol selector and IBOutlet but how can I integrate it between UICol...
License asked 5/12, 2016 at 13:24

2

Solved

I am currently experiencing some issues regarding the URLSession, while trying to post data to my web server. This however, works perfectly. What seems to not work, is the timeout I have set. This ...
Overturn asked 21/10, 2016 at 13:27

3

How to do I implement a horizontal progress bar in iOS like as Android. I have tried the following, and found a solution like deteminate. func startSendPickUpRequestShakeTimer () { if self.mo...
Slimy asked 29/5, 2017 at 4:32

7

Solved

I'm working in a specific Xcode project and deliberatly making errors in my code (like using undeclared variables), but Xcode doesnt seem to show any compile errors in my code. It shows errors on...
Dependable asked 6/5, 2017 at 10:41

3

I am trying to create/add a Hotspot configuration in iOS 11 installed device. My code is as follows let hotspotConfig = NEHotspotConfiguration(ssid: "testNetwork") hotspotConfig.joinOnce = true N...
Implicit asked 26/9, 2017 at 10:52

4

Solved

I'm testing this and it appears that if you change the value within didSet, you do not get another call to didSet. var x: Int = 0 { didSet { if x == 9 { x = 10 } } } Can I rely on this? Is i...
Loseff asked 2/10, 2016 at 16:24

10

Solved

I was converting from Swift 2 to Swift 3. I noticed that I cannot convert a boolean value to integer value in Swift 3. let p1 = ("a" == "a") //true print(true) //"true\n&q...
Yarkand asked 25/10, 2016 at 14:29

8

Solved

In Swift 2.x I believe I could do: let number = 1 let result = Bool(number) print(result) // prints out: true But since Swift 3 I've been unable to do this and it gives me the error: Cannot ...
Penates asked 15/10, 2016 at 14:15

5

Solved

I am using Swift 3 and trying to access captured groups. let regexp = "((ALREADY PAID | NOT ALR | PROVIDER MAY | READY | MAY BILL | BILL YOU | PAID)((.|\\n)*))(( \\d+)(\\.+|-+)(\\d\\d))" // chec...
Craftsman asked 14/3, 2017 at 15:22

1

Let me explain, I have a parent view with a SearchBarView, im passing down a focus state binding like this . SearchBarView(searchText:$object.searchQuery, searching: $object.searching, focused: _s...
Baillieu asked 29/10, 2022 at 12:10

2

Solved

I am adding pagination to myTableview that presents blog posts. The data source is an array of posts, i.e. posts = [post]. I initially fetch 20 posts. I have a button that fetches the next 20 reco...
Unamuno asked 17/4, 2017 at 14:14

8

Solved

Could you please help on how to get country code using NSLocale in Swift 3 ? This is the previous code I have been using. NSLocale.currentLocale().objectForKey(NSLocaleCountryCode) as! String I...
Trash asked 20/9, 2016 at 14:2

3

I have an app which uses SlideMenuControllerSwift. I've modified some code to see how to present different panels, then rolled back my changes. When running the project I get SIGABRT fatal error:...
Engler asked 12/7, 2017 at 7:38

9

Solved

I have a JWT token like this eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiYWRtaW4iOnRydWV9.TJVA95OrM7E2cBab30RMHrHDcEfxjoYZgeFONFh7HgQ How can I dec...
Melonie asked 1/12, 2016 at 16:26

12

Solved

Description: Answer for Objective-C and Swift2.0: How to center align the cells of a UICollectionView? I usually would try to convert the Swift2.0 answer to the Swift3.0 solution, however the me...
Jacobsen asked 14/11, 2016 at 9:48

3

Solved

I am trying to add a new property to the Realm object UserDetails. Here is my try: class CustomerDetails: Object { dynamic var customer_id = 0 dynamic var customer_name = "" } Now i need to ad...
Rachellrachelle asked 7/10, 2017 at 8:52

4

Solved

In the following code, I want to test if x is a SpecialController. If it is, I want to get the currentValue as a SpecialValue. How do you do this? If not with a cast, then some other technique. Th...
Durante asked 2/11, 2016 at 19:12

6

Solved

I am sending a request which is triggered based on timer. But if I press the back button the request still seems to be active and the response in turns crashes the app. Kindly suggest a way to canc...
Pernas asked 5/1, 2017 at 5:53

5

Solved

I have a shared-memory between multiple threads. I want to prevent these threads access this piece of memory at a same time. (like producer-consumer problem) Problem: A thread add elements to a q...
Ehrlich asked 12/9, 2017 at 6:36

© 2022 - 2024 — McMap. All rights reserved.