custom-cell

How to make use of cell reuse in UITableViewSource in Xamarin?

谁都会走 提交于 2019-12-24 00:19:59
问题 I have UITableViewSource class which is used for the UISearchDisplayController . In my main table view I have a custom cell which works fine. Now I want to use the custom cell also for the table view of the search results. But I only manage it to display the default style with public class SearchSource : UITableViewSource { static NSString cellIdentifier = new NSString("CustomCell"); public override UITableViewCell GetCell (UITableView tableView, NSIndexPath indexPath) { UITableViewCell cell

Custom UITableview Cell Occasionally Overlapping/Reproducing On Top Of Other Cell

早过忘川 提交于 2019-12-23 17:58:30
问题 Really strange problem I'm having here. Basically, the user comes to a View that has a TableView attached to it. There's a call to the backend for some data, and in the completion block of that data is provided to the TableView to display. In cellForRow 1 of 4 reusable, custom cells is dequeued, based on some logic, and then a configure method for that cell is called. Here's where it gets tricky: Some of the cells might require further asynchronous calls (to fetch more data for their custom

How to stop cells from indenting - shouldIndentWhileEditingRowAtIndexPath has no effect

时光毁灭记忆、已成空白 提交于 2019-12-22 20:00:10
问题 I have a plain (not grouped) tableView with custom cells, and when I hit the Edit button, the cells indent. I don't want that, I want the deletion sign to lay right on top of my cell. I tried shouldIndentWhileEditingRowAtIndexPath and also cell.shouldIndentWhileEditin = NO; as well as cell.indentionLevel = -3, but both won't have any effect. Any idea why? Could this be due to my setup? I followed this tutorial, and I also tried a setup like Davyd suggested here, but the last did not only

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

天涯浪子 提交于 2019-12-22 10:33:28
问题 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 Style self.container.layer.cornerRadius = 3 self.container.setDropShadow(UIColor.blackColor(), opacity: 0.20, xOffset: 1.5, yOffset: 2.0, radius: 1.8) //Rounded thumbnail self.thumb_image.setRoundedShape() self.thumb_image.backgroundColor = UIColor

iPhone - having selected cell move to top of uitableview

霸气de小男生 提交于 2019-12-21 04:51:14
问题 Hey guys, I looked for this problem and I don't believe I could find an answer. I have a tableview of custom cells that when clicked, the selected cell pushes a new cell with information. I was wondering if anyone had an idea of how to push the selected cell to the top of the uitableview, or make it fill up the entire tableview. My uitableview only takes up half of the screen, and I wish for when the cell is selected that it only take up that half of the screen, and the user is still able to

iPhone - having selected cell move to top of uitableview

≯℡__Kan透↙ 提交于 2019-12-21 04:51:10
问题 Hey guys, I looked for this problem and I don't believe I could find an answer. I have a tableview of custom cells that when clicked, the selected cell pushes a new cell with information. I was wondering if anyone had an idea of how to push the selected cell to the top of the uitableview, or make it fill up the entire tableview. My uitableview only takes up half of the screen, and I wish for when the cell is selected that it only take up that half of the screen, and the user is still able to

UITableViewCell in ios7 now has gaps on left and right

寵の児 提交于 2019-12-21 03:58:13
问题 I have a UITableView where, in ios6, my custom cell stretched completely to the left and right sides of the screen. So my square image on the left of the cell was hard up against the phone screen. However, now in ios7, there is a small gap appearing on the left hand side so the image is now away from the side and slightly overlaps my text within the cell. This also seems to be happening in other apps I have that I am now viewing in ios7 - all have a gap on the left and perhaps the right as

In Table view How to add another custom cell in expanded cell in ios?

你。 提交于 2019-12-20 05:14:00
问题 Hi i have been working expanding cell for the past few days from some suggestion of internet i found code to expand the customcell. Now my question is i am using custom cell here so after expanding cell i wanna add another custom cell in the expanded custom cell. So any one can help me to do this??? thanks in advance @interface MyHomeView () { NSIndexPath *selectedindexpath; } @end -(void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath { selectedindexpath

NSTimer inside custom tableViewCell

[亡魂溺海] 提交于 2019-12-20 03:52:41
问题 I'm activating a function in my custom cell class from a viewController. The custom cell class looks like this: import UIKit class TableViewCell: UITableViewCell { var counter = 10 class func timerStarted(){ var timer = NSTimer() timer = NSTimer.scheduledTimerWithTimeInterval(1, target: self, selector: "update", userInfo: nil, repeats: true) } class func update(){ let cell = TableViewCell() var count = cell.counter count = --count println(counter) } } The problem is that the variable counter

Calling two different custom cell in one UITableView issue

℡╲_俬逩灬. 提交于 2019-12-19 06:57:21
问题 I have created a custom cell FeatureCell which has 5 images in the row that will be called in the main view but when I call it I get empty row. So please where could be my problem? I have googled about custom cell and I used the way that I have to use in the code below but nothing happen. This is my FeatureCell.h @interface FeatureCell : UITableViewCell{ IBOutlet UIImageView *img1; IBOutlet UIImageView *img2; } @property (nonatomic, retain) UIImageView *img1; @property (nonatomic, retain)