Prior to iOS7, the reorder icon would move the cell's detail text UILabel to the left and allow space for the reorder icon. Now the reorder icon overlays the detail text. Does anyone know how to stop this behavior?
This question is also the same as iOS7 UITableViewCell reorder control overlap detailTextLabel with UITableViewCellStyleValue1
I've found the same problem, and have yet to find a nice solution. I did notice, though, that this only seems to be a problem if the TableView style is 'grouped'. If you change the style to 'plain' the TableView shifts the cells content in from the right as you'd expect.
So, depending on your particular needs, you might be able to change the table style.
Related
I was looking through some setting page in apps and saw the setting page in trip advisor
And I wondered how is this implemented is it a stackview of buttons or table view cells? (front end)
Please note this is not a problem just a question on how is it done or idea behind just to expand my knowledge
There are two styles of table view. One is plain and the other is grouped. A plain tableView is used while huge data is displayed, i.e. show your contact list. A grouped tableView is used where data is in a group. Here the tableView is grouped. Each group is a section.
The UITableViewCell has many styles, custom, left detail, right details, subtitle, etc. Right detail is for some limited string data, where left is title and the answer is on the right of the screen. For example, the Language is a title for a question and the answer is shown on the right, English is the answer. The Autoplay Videos segmented control cell in the tableView is custom.
The left arrow is UITableViewCellAccessoryDisclosureIndicator showing that if you tap on the cell or the accessory then you will find more data.
It’s an tableview cell with more than one section. And tableview style is group.
I am using Xcode 7.1 and Swift 2.1 version.
I am looking for something as shown in the picture
Here in the left screen (Before Swiping), I have a UITableView in which there are certain cells in which I have to implement a right swipe functionality.Now when I swipe right the one coming from right must be a UICollectionView as shown in right picture (After Swipe) as there can be many options (a,b,c,d,e....). So they should be in some scroll view like UICollectionView.I searched a lot and found some libraries like
https://github.com/MortimerGoro/MGSwipeTableCell
https://github.com/CEWendel/SWTableViewCell
They provide array of UIButton or a single Button with image or text. We can add multiple buttons but they will shrink accordingly.
I want something called a UIView in which I can place UICollectionView and make its datasource accordingly with fixed size cells as shown in the picture.Any source or link for the same is highly appreciable.
Thanks
How would I be able to horizontally scroll a UITextField in a UITableViewCell if the text overflows? I want it so that the user can scroll the text to see all of it, but it should not interfere with the swipe left to delete gesture in a UITableView. Is there a way to do this?
This should be happening automatically, but the hit regions are very small. This will likely lead to user confusion since two gestures in very small areas do two different things.
Are you sure that's a UITextField you're using in the cell? Looks like it's a UILabel because of the truncation.
This is screenshot of whatsapp, I have to create a tableview just like this one.
It has space on left side (Dont know top two cell are custom or default with right detail style).
Few cells in between have no separators.
How I am suppose to do same with my uitableview.
Start from iOS 7 left inset of UITalbeViewCell is default. Default value is 15, but you can change it.
This is not a few cells. This is One custom cell. I mean work+main+iPhone it is one cell.
I have a particular goal in mind here, searching for it is a little hard. I am trying to accomplish this (This is a photoshopped screenshot):
I have everything in this view working, except for the split row for the Company Name/ Beginning of the field row. The "Company Name" field is just a textfield, all I really want to do is shrink that neato cell background to just go behind the right side.
Create a custom table view cell that has two subviews: the text field on the left and a UITableViewCell on the right as a subview of the main table view cell. A UITableViewCell is just a UIView so you can actually add it as a subview of any view. The main table view cell will have it's background color set to transparent.
So totally complicated custom cell comes with a totally ridiculous solution. I built a view for the cell that has the one field...and another UITableView.
That second UITableView has the "Beginning of the field" text, and its cell gets the background, and I hide the background of the main cell.
I had to play around with the nested table's size and position to get the row to display properly, and make sure that the lines in the background don't shift when it hits the nested table, but it came out perfect
You could try setting the frame property of your cells backgroundView to cover only have your cell's width. Address Book handles complex forms like this with a nice look and feel--you might want to see what they've done there..
One approach would be to define a custom table view cell, set its background transparent and add the UITextField on the left and a UIButton on the right (customize it to look like your other cells), as in your screenshot.