Questions tagged [custom-cell]

A custom cell is a unique, personalized or subclassed version of some generic cell type.

759 questions
5
votes
0 answers

Animate each row insertion separately Swift

Im inserting new section (insertSections) as well as new rows inside it (insertRowsAtIndexPaths). I'm using those two functions for the sake of withRowAnimation parameter. With the help of stack community i've been able to override the in-built…
David Robertson
  • 1,561
  • 4
  • 19
  • 41
5
votes
1 answer

Prevent reuse of custom cells in table view Swift

I have a problem which i'm not sure how to solve. I have two custom cell nibs - data for both is fetched from separate arrays. The structure is the following nib1-cell line1 nib1-cell line2 ... nib1-cell line n nib2-cell line1 there is always one…
David Robertson
  • 1,561
  • 4
  • 19
  • 41
5
votes
2 answers

How to add a separator space between rows on custom Xamarin.Forms ViewCell?

In this question on Xamarin Forums, Craig Dunn teaches how to create a cell with frame. I want to Add a space between each cell. At present the cells seems glued, and the ViewCell doesn`t have a space property. How can I add a separator space…
Ineltec Android
  • 79
  • 1
  • 2
  • 5
5
votes
2 answers

Using Custom Static Table View Cell XIB in Storyboard

I have a custom static UITableViewCell that I want to look exactly the same as a right detail cell (UILabel on the left, UILabel on the right), except I want the right UILabel to be an editable UITextField. Since I want to use this cell in multiple…
sethfri
  • 1,307
  • 1
  • 15
  • 31
4
votes
4 answers

Custom cell with variable height

I´m using custom cells in a TableView. The cell height is calculated based on an NSString that is loaded in a UILabel of the cell. The size is calculated using this function (CGFloat)tableView:(UITableView *)tableView…
bruno
  • 2,154
  • 5
  • 39
  • 64
4
votes
2 answers

How control line-spacing of UILabels?

I'm using CustomCell instead of UITableViewCell on UITableView. I put two UILables on CustomCell. Refered this site: here , but I failed... Question : How can I control line spacing of UILabels?
hyekyung
  • 671
  • 2
  • 14
  • 27
4
votes
2 answers

Button on tableview cell is not working - swift

I have a button on my custom tableview cell that is showing the users name. When you click on it, you should be taken to his/her profile but nothing happens? Here is my custom tableview cell class (commentsTableViewCell.swift) : import…
D. Finna
  • 467
  • 2
  • 7
  • 19
4
votes
1 answer

iOS where to put custom cell design? awakeFromNib or cellForRowAtIndexPath?

So, basically i made a custom cell from a nib, wish i apply a little custom design, like colors and shadows. I found two ways of applying the styling: awakeFromNib(): override func awakeFromNib() { super.awakeFromNib() //Container Card…
Nuno Vieira
  • 193
  • 2
  • 10
4
votes
3 answers

Unable to make view equal width to cell in iOS?

I am making a custom cell in iOS.I have added prototype cell.I m trying to add a view inside a cell of equal width to parent cell.But the width of cell is not equal please tell me how should i do it? Constraints are: View structure: EDIT: In…
TechChain
  • 8,404
  • 29
  • 103
  • 228
4
votes
2 answers

How to Call awakeFromNib in mainViewController.m

I have an xib file containing a custom cell. I'm trying to access the height of an object created in customCell.m. Here is my code: customCell.m - (void)awakeFromNib { self.label = [[UILabel alloc] initWithFrame:CGRectMake(0, 0, 50, 200)]; …
user4487951
4
votes
1 answer

iOS Swift - Filtering contents of UITableView that has custom cell with Search Bar and Search Display

I have an issue with Search Bar and Search Display in a Swift project for iPhone. I added one UITableView with custom cells to a View. Cell have Indetifier set to "QuestionCell" and Class set to "QuestionCellTableViewCell". I added to that cell two…
Andrea Venanzi
  • 230
  • 5
  • 15
4
votes
7 answers

Increase the main tableview row height according to the custom cell

I am having an app in which I have a Tableview and on that tableview's each row I am dynamically creating a custom tableview cell. Below is the code for that. NSArray *nib = [[NSBundle mainBundle] loadNibNamed:@"flowviewTableViewCell" owner:self…
Maulik shah
  • 1,664
  • 1
  • 19
  • 45
4
votes
0 answers

UITableViewCell make only part of cell selectable

I have a custom TableViewCell and I would like that user can only tap/select the part of the cell in tableview. I guess that this would be possible if I make the my CustomCell non selectable and then add UIButton inside my CustomCell on which the…
user3108761
  • 53
  • 1
  • 3
4
votes
6 answers

IOS table view inside of a table view

I have a table view with expanding cells for each of them. I want to make every expanding cell be a new table inside of the bigger one. Is that possible? I've done the research, someone said that duplicate UITableView cannot put in one file. For…
tracer_rock
  • 165
  • 1
  • 3
  • 9
4
votes
4 answers

objective-c accessing methods from custom cell

ok, this is maybe a newbie question but i need help with it.. I have a someview.m and in it a custom cell which is defined in customCell.h and .m So in someview.m i have - (UITableViewCell *)tableView:(UITableView *)tableView…
1 2
3
50 51