All Questions
Tagged with uitableview swift3
1,315 questions
0
votes
1
answer
291
views
Unable to change button title in header
I have a VC that is UICollectionView that has header. This header is a custom cell, and inside that cell there is a button that opens UITableView (dropdown).
Whenever I tap on that button, and select ...
0
votes
1
answer
289
views
how to add an alert to my "delete all" and "save" button in my view controller?
i have added button in my viewController programmatically, i want to add an alert when tapping the button that will appear the alert and remove all the added items in my TableViewCell. how can i do ...
-1
votes
1
answer
48
views
How to solve this issue by adding visitors into an array from textfields in cells of the tableview? [closed]
Here I have a view in which the user can enter his name, mobile number, visitor age, visitor name and visitor gender in a view that appears on top WHICH IS A CELL...(TopCell).
And below that cell ...
0
votes
1
answer
205
views
swift uitableview repeats first cell
Im a complete beginner to swift and iOS and I'm trying to write some code which will take some json and put it into an array of objects and then use that array to populate the tableview.
The problem ...
0
votes
0
answers
50
views
How to Reorder tableview row in a tableview controller to a specified index row without dragging and dropping?
I'm looking for a way on how to reorder a tableview row to the 0th index position based a bool value I get from another view controller? Stuck on this for a while. Only found answers on how to drag ...
1
vote
3
answers
2k
views
Restrict cell selection per section in UITableView swift
I want to restrict certain sections of my tableview to only allow 1 cell to be selected, as of right now all my cells can be selected regardless of the section it's in
There is a little twist however ...
0
votes
1
answer
48
views
Automatic table height with collectionView content - Swift
The hierarchy looks like this:
Table View
Table View Cell
Collection View
Collection View Cell
The Collection View content is loaded by ajax json.
I want the table to adjust the height after loading ...
0
votes
1
answer
71
views
Array returns values in wrong positions
I have a problem with an Array, I'm working with a WebService that returns different URLs, I save this information in an array and then display it in a UITableView, the problem is that in the first ...
0
votes
1
answer
345
views
Button is automatically touched in reusable table view cell
I have a button in my custom cell of tableview. The button is automatically in pressed state (i have checked it from isTouchInside) whenever i scroll the table view. I have used reuseable cell. How ...
0
votes
1
answer
36
views
I have a problem loading json data Swift4 when its not found, why?
When my script asks the server to load data and receives the required data everything goes well but when it fails to find the required data I can not do something in else.
func myJSON(sec:Int) {
...
0
votes
2
answers
1k
views
How to hide a tableView after selecting a row
I have a textField, which when touch displays a tableView with some rows.
I'm trying to do this: when a user selects one of the rows, the value of row is placed in the textField and the tableView is ...
-4
votes
2
answers
83
views
UITableView error when converting to Swift 3
Updating an old app from swift 2.2 to swift 4. I have to use swift 3 as a stepping stone. I converted to 3 but come across the following error:
Binary operator '==' cannot be applied to operands of ...
0
votes
2
answers
934
views
Listing scheduled notifications in a table view controller
I am trying to list all the notifications a user has created and scheduled in my app, similar to that of the list of alarms in the 'Clock' app from apple. However, each time I get the array of ...
0
votes
1
answer
75
views
Fill a tableview from JSON with Swift
I'm a total swift novice and even the simplest things I can do. For example, I would like to show in a UItableview a list of names that come from a JSON file, but I am not able to do so.
Specifically,...
1
vote
0
answers
212
views
Is it possible to have 2 headers for same section in CollectionView?
I have data in this way
January
14th
Cotent A
Cotent A
Cotent A
Cotent A
13th
Cotent A
Cotent A
Cotent A
Cotent A
February
14th
Cotent A
...