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.
Questions tagged [swift3.2]
79 questions
1
vote
0 answers
Increase height of contentsize of UIScrollView with a button press with adding a row in my table view
I want to add a row in my table view with a button press and according to the row height the content size of scrollview must increase and i have also add a view as subview of uiscrollview , this is my code.....
import UIKit
class…

Vivek Sharma
- 11
- 2
1
vote
1 answer
Error without initializing all stored properties return from initializer
enter image description here
I'm converting swift 1.2 to swift 3.2 here init is showing error any suggesstion plese
var context:NSManagedObjectContext
var psc:NSPersistentStoreCoordinator
var model:NSManagedObjectModel
var store:NSPersistentStore? =…

iOSDude
- 274
- 2
- 25
1
vote
3 answers
Custom UITableViewCell created from .xib doesn't show
I'm lost. I searched and searched and cannot find the reason why my custom cell isn't displayed.
// ProfileCell.swift:
import UIKit
import QuartzCore
class ProfileCell: UITableViewCell {
@IBOutlet weak var profileNameLabel: UILabel!
…

Tom K
- 19
- 7
1
vote
1 answer
Why is this simple Directory Handling app failing?
I'm following this tutorial to try and learn Directory Handling when working with iPhone.The app is very simple. When the user touches the button after entering text into the text field, that text is saved to a file. The next time the application…

Theodore.K
- 384
- 2
- 7
- 21
0
votes
1 answer
Dynamically set view top margin and height using autolayout - swift3
I am working on a UI where I have 3 labels. All are arranged vertically-
Label 1
Label 2
Label 3
List item At a time any two Label will be shown to user.
For example if Label 1 and Label 3 are shown then I want to shift Label3 up below the label1…

user10316062
- 1
- 4
0
votes
1 answer
Swift3 - Binary operator '==' cannot be applied to operands of type 'AnyObject?' and 'FileAttributeType'
I am trying to check FileAttributeType.
Here is my logic to compare:-
let attributes = try fileManager.attributesOfItem(atPath: "/Users/AUSER/Desktop/Downloads")
print(attributes)
if (attributes[FileAttributeKey.type] as…

user10316062
- 1
- 4
0
votes
1 answer
Array of dictionary comparision - swift3
I have 2 array of dictionaries. I want to write a function which compare these 2 arrays.
Function should return true only if main array contains sub array element.
Else it should return false.
Here is my logic-
let mainArry = […

srus2017
- 394
- 2
- 14
0
votes
1 answer
how to manage view hierarchy when opening a viewcontroller from push notification
I have managed to open a view controller from app delegate when clicked on push notification from viewcontroller with didReceive
method. My issue is managing the hierarchy . Consider I have View A, B and C such that I will get to see View C in…

Rushikesh
- 41
- 1
- 4
0
votes
0 answers
Cannot convert value of type String to specified type NSManagedObjectContext Swift 4
I need Help. While conversion from Swift 2.3 -> 3.2 I received below error. I'm not able to resolve this error.
Error : Cannot convert value of type String to specified type NSManagedObjectContext
Below is my coding stuff, where I'm facing some…

A.R
- 3
- 1
- 4
0
votes
2 answers
Cannot convert value of type String to specified type NSManagedObjectContext, While converting from Swift 2.3 -> 3.2
I need Help. While conversion from Swift 2.3 -> 3.2 I received below error. I'm not able to resolve this error.
Below is my coding stuff, where I'm facing some issues.
Error1 : Cannot convert value of type String to specified…
user9923412
0
votes
2 answers
Cannot subscript a value of type NSDictionary with an index of type String. While converting from Swift 2.3 -> 3.2
I need Help. While conversion from Swift 2.3 -> 3.2 I received below error. I'm not able to resolve this error.
Below is my coding stuff, where I'm facing some issues.
Error :
Cannot subscript a value of type NSDictionary with an index of type…

A.K.Deshmukh
- 3
- 3
0
votes
3 answers
Binary operator cannot be applied to operands of type Int and String - Swift 2.3 -> Swift 3.2 conversion error
While converting from Swift 2.3 to 3.2 I received below error.
Error : Binary operator cannot be applied to operands of type Int and String
for this if Condition i.e if (error?.code)! == "-112" which is shown in below line.
if (error?.code)!…

A.R
- 3
- 1
- 4
0
votes
2 answers
How to Update TableView and its parent ScrollView Height according to its content
I have a UITableView that is set to not enable scrolling, and it exists in a UIScrollView. I'm doing it this way as the design specs call for something that looks like a tableView. The TableView Cell having dynamic height So I use
func…

Sourabh Bissa
- 76
- 12
0
votes
0 answers
error after present controller
I used from https://github.com/jonkykong/SideMenu programmatically on my Controller with swift 3.2
let menuSlide = DrawerViewController();
SideMenuManager.menuWidth = 200
SideMenuManager.menuRightNavigationController = menuSlide
…
user3374675
0
votes
2 answers
Application screen sequence in iOS app
In the application I can go from screen A to B to C.
Also I can go from screen A to E and also I can go from screen C to E.
I want to know the entry point from where Controller E is presented.
PS : application is storyboard less and can’t post code…

Shruti
- 1
- 13
- 55
- 95