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 ...
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...
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...
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...
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...
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 ...
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...
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...
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...
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:...
9
Solved
I have a JWT token like this
eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiYWRtaW4iOnRydWV9.TJVA95OrM7E2cBab30RMHrHDcEfxjoYZgeFONFh7HgQ
How can I dec...
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...
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...
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
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
1 Next >
© 2022 - 2024 — McMap. All rights reserved.