custom-cell

iOS tableView with time at the left

半城伤御伤魂 提交于 2020-01-06 14:09:17
问题 I'm building an iOS app that would benefit from having the time from say 07:00 to 16:00 (specified by user) on the left of a UITableViewCell like this: What would be the best approach for such a behaviour, including the possibility of a colored rectangle over several cells? I imagine you would design a custom cell but it's the colored rectangle (appointments in the iOS calendar) logic that I'm not sure how to go about as it stretches over several cells. Could someone point me in the right

Two different UITableViewCell in UITableView

别来无恙 提交于 2020-01-06 10:53:29
问题 I want to create one TableView that has 2 section rows. this table has 2 section (first section has 1 cell and second section has 3 cell) notice:cell of first section different with cells of second section. this is my code but don't working!!! - (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath { NSArray *name = [_names objectForKey:key]; static NSString *CellIdentifier2 = @"CustomerCell"; if (indexPath.section == 0) { static NSString

i want to change the height of the view based NStableview cell based on label added to the cell using swift?

喜你入骨 提交于 2020-01-03 04:47:07
问题 How to change view based tableview cell height dynamically after loading data into cell using swift os x application. Programmatically I added labels to the custom view based on that i want to change the height of the tableview cell. I used visual format language to add autolayout constraints. i have created imageview and labels programmatically inside custom view based nstableview cell. i want to change the cell height according to the labels added to the custom cell. import Cocoa class

swift iOS - UICollectionView images mixed up after fast scroll

只愿长相守 提交于 2019-12-30 08:16:01
问题 I am new to swift and iOS programming, but I have been able to build a mostly stable starting interface for my application in Xcode. The CollectionView grabs an image and text from an array of dictionaries created from a csv file on my home network server. The cvs file contains data in the following format (note, urls have been changed to protect licensed images): csv file csv file is @ url https://myserver.com/csv.txt and contains the following Title";"SeriesImageURL Title1";"https:/

swift iOS - UICollectionView images mixed up after fast scroll

笑着哭i 提交于 2019-12-30 08:15:09
问题 I am new to swift and iOS programming, but I have been able to build a mostly stable starting interface for my application in Xcode. The CollectionView grabs an image and text from an array of dictionaries created from a csv file on my home network server. The cvs file contains data in the following format (note, urls have been changed to protect licensed images): csv file csv file is @ url https://myserver.com/csv.txt and contains the following Title";"SeriesImageURL Title1";"https:/

Custom UITableViewCell in edit mode does not move my UILabels

孤人 提交于 2019-12-30 03:16:05
问题 This is doing my head in:-) I have a fully functional CoreData Populated UITableView inside a UIViewController and I have successfully implemented the "Swipe to Delete option" (which is easy) and I can also delete single instances with an edit button where the red circle thingy comes up. My problem is, and I think it is because I have a CustomCell, that when I press the edit button the UILabels do not move to the right. I have tried using -(void)layoutSubViews and a few others, but nothing

Initialize custom UITableViewCell

冷暖自知 提交于 2019-12-25 02:21:01
问题 I'm trying to load a single custom cell into a UITableView and it keeps throwing an error UITableView dataSource must return a cell from tableView:cellForRowAtIndexPath: I have no idea why. I have linked my table view cell to the UITableViewCell definition in my code, but it keeps giving me this error. Here is my code; any help would be greatly appreciated. #import "RegisterDeviceViewController.h" @implementation RegisterDeviceViewController @synthesize checkString; @synthesize

I have two views on one cell, when I click on a cell it will be hidden and one edit form will be expanded on that. How to resolve that?

不羁岁月 提交于 2019-12-24 17:30:23
问题 I'm a beginner iOS. I have one cell of tableview with two custom views: one is item cell and one is edit form that cell. When user click on item, that item will be hidden and the edit form of that cell will be expanded on that. How I can resolve that problem. Thank you! (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath{ MinimumCell *cell1 = (MinimumCell *)[tableView dequeueReusableCellWithIdentifier:@"MinimumCell"]; if (cell1 == nil) { cell1

I have two views on one cell, when I click on a cell it will be hidden and one edit form will be expanded on that. How to resolve that?

不问归期 提交于 2019-12-24 17:29:34
问题 I'm a beginner iOS. I have one cell of tableview with two custom views: one is item cell and one is edit form that cell. When user click on item, that item will be hidden and the edit form of that cell will be expanded on that. How I can resolve that problem. Thank you! (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath{ MinimumCell *cell1 = (MinimumCell *)[tableView dequeueReusableCellWithIdentifier:@"MinimumCell"]; if (cell1 == nil) { cell1

multiple cutsom cells in UITableview

天大地大妈咪最大 提交于 2019-12-24 09:47:52
问题 Can anyone give me idea on how to define two custom cells in one UITableView? One cell should only contain text while the other contain video or image. The height also differs with each other. I need cells just like the given image below- Here is the code am working on- - (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath { static NSString *CellIdentifier1 = @"tablecell"; static NSString *CellIdentifier2 = @"tablecell1"; if ([self.arrayAction