Questions tagged [swift3.2]

Only use this tag if your question is about a specific change introduced in `Swift 3.2`. For generic Swift questions, use the [swift] tag.

79 questions
0
votes
1 answer

UIButton Inside Header Not Working

I've been searching for this answer but can't seem to find it. I have a sectionHeader above a collection view. I added a button into the header but the function doesn't run. Mind taking a quick look for 1min and helping me out? import UIKit class…
Kenny Ho
  • 409
  • 3
  • 16
0
votes
1 answer

Alamofire 4: Cannot call value of non-function type 'HTTPURLResponse?'

Using Alamofire 4 with Swift 3.2. The code in question worked at one point, but I had to move it. Now no matter how I simplify it, it won't compile. I get the error "Cannot call value of non-function type 'HTTPURLResponse?'" on the .response(…
SafeFastExpressive
  • 3,637
  • 2
  • 32
  • 39
0
votes
2 answers

Xcode doesn't recognize Enums

I made a project with Xcode 9 beta and now for release it I have to use Xcode 8 for archiving and releasing,but when try to build with Xcode 8,some error accord. I have an enum that works correctly in Xcode 9,but Xcode 8 can not recognize members of…
0
votes
1 answer

invalid value around character 1

trying to send data to server but every time i run my code an empty row is added to the database and an error appears in xcode as : "Invalid value around character 1." UserInfo={NSDebugDescription=Invalid value around character 1.} @IBAction func…
hammad119
  • 1
  • 1
0
votes
1 answer

How to change UIAction sheet Cancel button background color

I was trying to change the background color of UIAction sheet "Cancel" button but it doesn't work. Here is my code snippet if let subview = alertController.view.subviews.first, let alertContentView = subview.subviews.first { for innerView in…
IOS Rocks
  • 2,127
  • 2
  • 21
  • 24
0
votes
1 answer

Xcode 9 beta 3 - Swift 3.2: comparing optional

Project which compiles fine in Xcode 8.3.2 shows many compilation errors around comparing optional/non optional value with == What I have found is an older proposal for removing coparison <> for the…
ds77
  • 107
  • 1
  • 6
0
votes
1 answer

Get date from core data, then fetch and display in the tableViewCell

How to display data in the tableViewCell, which i'm fetching from core data as date? Here is my code, but it doesn't work let formatter = DateFormatter() // initially set the format based on your datepicker date formatter.dateFormat = "yyyy/MM/dd …
user8274432
0
votes
1 answer

I got an error [Type "View Controller" does not conform to protocol "ORKTaskViewControllerDelegate"]

I am just starting to use swift3 in Xcode in order to utilize ResearchKit provided by Apple.inc. Although I have worked through tutorials from Researchkit Tutorial with Swift: Getting started in Ray Wenderlich, I have a trouble in the extension of…
okito
  • 1
  • 1
0
votes
0 answers

value of type string has no member stringbyappendingpathcomponent

@UIApplicationMain class AppDelegate: UIResponder, UIApplicationDelegate { var window: UIWindow? lazy var coreDataStack = CoreDataStack() func getSavePathsForListWithName(_ name: String) -> String { let pathsArray =…
iOSDude
  • 274
  • 2
  • 25
0
votes
1 answer

Collection View inside Table does not load immediately in swift 3

I add one table view in Home View Controller. Inside table view, I add Collection View. An Image inside collection view at first time running the app. Then, goes to other links and come back to Home but image in the collection view does not show…
May Phyu
  • 895
  • 3
  • 23
  • 47
0
votes
2 answers

Error when adding a string to a NSMutableAttributedString

I have this function for adding a bullet to a textView let bullet: String = " ● " func setAttributedValueForBullets(bullet: String, positionWhereTheCursorIs: Int?) { var textRange = selectedRange let selectedText =…
dmram
  • 125
  • 1
  • 12
0
votes
1 answer

Is Swift 3.2 production ready?

Apple recently released Xcode 9, which ships with a Swift 3.2/4 compiler. Swift 3.2 includes numerous features (such as support for where constraints on associated types), while still being a member of the Swift 3 family. So, my question is: Is…
Vatsal Manot
  • 17,695
  • 9
  • 44
  • 80
-1
votes
2 answers

Replace string text to particular text in an array string with in ios swift

entities = ({confidence = ""; end = 113; entity = DATE; extractor = "ner_spacy";start = 103;value = "five years"; }, {confidence = ""; end = 177;entity = ORG; extractor = "ner_spacy";start = 163;…
-1
votes
1 answer

iOS : Unbox JSON with array of dictionary array

I want to parse a JSON file using Unbox library. The JSON is an array of dictionary array. How can we do that? I tried using keypath and all but unable to parse it. I need array of section. I tried with single hierarchy and able to parse it. Library…
miOS
  • 1,379
  • 13
  • 20
-2
votes
1 answer

Autolayout - Adjust Label Y position on the basis of other label's dynamic height above it

I have two labels. Label A and Label B as shown below. View with both labels View when Label A height is 0 I want to move Label B up with top margin to superview = 20pt, when Label A height is zero. If label A height is > 0 Then Label B Y position…