Questions tagged [swift4.1]

Use this tag only for questions directly related to changes in version 4.1 of Apple's Swift programming language. Use the tag [swift] for more general language questions, or the tags [ios], [cocoa], [apple-watch] etc. for questions about developing on Apple platforms.

Swift 4.1 contains updates to the core language, including more support for generics, new build options, as well as minor enhancements to Swift Package Manager and Foundation. There was also significant progress made in stabilizing the ABI.

Swift 4 is the fourth version of the Swift language developed by Apple that was released in 2017. The language is open source and available on Github (see ).

The development of Swift 4 and its goals can be viewed on the Swift Programming Language Evolution repository on GitHub

229 questions
0
votes
0 answers

How to swap 2 view controllers in a UINavigation controller

I have 2 UIViewControllers, UIViewControllerA and UIViewControllerB in a UINavigationController stacked in this manner -> [UIViewControllerA, UIViewControllerB]. Now instead of popping UIViewControllerB to reach UIViewControllerA, I want to swap…
crypt
  • 449
  • 5
  • 15
0
votes
0 answers

login and signup screens can't present or dismiss

okay I need help I'm trying to present the loginController that users have to sign up or login before they can use app but I can't get it to present I don't what to do anymore I try everything override func viewDidLoad() { …
0
votes
1 answer

What is Swift 4.1.50?

I'm playing around with the Xcode 10 beta, and I noticed while doing compile-time checks of the Swift version number that projects with the Swift Language Version set to Swift 4 in their Build Settings are reporting as Swift 4.1.50 (betas 2, 3, and…
Ky -
  • 30,724
  • 51
  • 192
  • 308
0
votes
1 answer

Facebook ImagePicker has no member title

I got an example from internet that was using: GBHFacebookImagePicker.pickerConfig.title = "Album" But when I compile it results a compile error: "Value of type 'GBHFacebookPickerConfig' has no member 'texttitle'
Almeida
  • 1,254
  • 12
  • 26
0
votes
1 answer

Value of type 'CustomTableCell' has no member delegate

I have a subclass of UITableViewCell called CustomTableCell which is declared in a swift 4.1. file. In my view controller with the UITableView I have in cellForRowAt: let cell = tableView.dequeueReusableCell(withIdentifier: "reuseIdentifier") as!…
cdub
  • 24,555
  • 57
  • 174
  • 303
0
votes
0 answers

Failed to set (fieldImage) user defined inspected property on (UITextField)

Could you help me with this error ? I try to add icon to UITextFeild and it show error like this : Failed to set (fieldImage) user defined inspected property on (UITextField) Here is my code : var errorImg = UIImageView(frame: CGRect(x: 0, y: 0,…
Mr Ice
  • 690
  • 1
  • 6
  • 9
0
votes
1 answer

UITableview Inside Another UITableView

How to handle table view inside another table view with height as UITableViewautomaticdimension ? The content inside the inner tableview is dyanamic
0
votes
1 answer

How to resume Audio using Mpmusicplayer after pause audio in swift 4.1(IOS 11)

I am working on Audio playing app using "MpmusicPlayer" and want to resume it after paused. I am using "self.appMusicPlayer.currentPlaybackTime" but it is not working in swift 4.1 (IOS 11). Is there have any other way to resume audio after pause…
Galaxy Patel
  • 154
  • 7
0
votes
1 answer

Ambiguous reference to member 'flatMap'

I'm trying to use the ReactiveCocoa library. But when I use the ReactiveCocoas flatMap function, I get an error. Does anyone know how to get around it? Maybe I'm doing something wrong? let countValues =…
SergeyBukarev
  • 1,478
  • 1
  • 12
  • 19
0
votes
1 answer

TableView Covering up whole screen in View

I'm having trouble with the TableView I added into my ViewController. Problem is it is eating up the whole screen being black thus hiding everything else. This is what I wanted but instead I got these This is with constraints Horizontal Center and…
mLjH
  • 425
  • 2
  • 7
  • 11
0
votes
2 answers

Show activity Indicator while uitableview reloaded

I have view with news in tableView, when I change some parameters in settings and return to view with news, my tableView must reloads news depending on new settings. I have outlet activityIndicator and this code : override func viewDidAppear(_…
g196et
  • 26
  • 3
0
votes
1 answer

extract out substring but get compiler error

I have a string "John+20", I would like to extract out "John", so, I tried following based on this answer: // data contains value "John+20" static func getName(fromString data: String?) { guard let myData = data else { return } let idx…
Leem
  • 17,220
  • 36
  • 109
  • 159
0
votes
1 answer

Grouping from Json data, which contain array of dictionaries in Swift 4

I've local json file, which contains array of dictionaries. I want to group based on key name from below json. Means same name in one group. Please tell me how can I achieve that. Thank you. Json Data: [ { "name": "Abc", "number": 123, …
0
votes
1 answer

Swift 4.1 JSON to Struct then to array of distinct dates

I am calling an API that returns a JSON result of appointments. Example: [{"DiarySummary":"Test appointment","DiaryDescription":"Test","DiaryId":"62","EventNo":"","EventTypeId":"","StartDateTime":"07/06/2018 09:00:51","StopDateTime":"07/06/2018…
Tony Law
  • 293
  • 2
  • 13
0
votes
0 answers

HTTP POST Does not work with Route class in my ios application, swift 4.1

I'm using Alamofire with swift 4.1, to work with http requests.I have writtent seperate Enum for Route which it's type URLRequestConvertible. each and every time it gives me 404. I use it like below. let urlRequest =…
Marlon Brando aka Ben
  • 863
  • 1
  • 14
  • 33