I made a UITableViewCell subclass, and now I want that subclass to be "clever". It should align it's contents to the height of the row. But for this, the cell must know what height value was provided for it in this method:
- (CGFloat)tableView:(UITableView *)tableView heightForRowAtIndexPath:(NSIndexPath *)indexPath
However, no matter...
I am using iPhone SDK 3.1.3. I have a UITableViewController which gets data from another controller. The tableview is added as a subview to the mainview but the frame is set so that it is not visible. The tableview frame is updated and made to slide over the main view by tapping on a button.
The table view appears and i scroll to the la...
Hello,
I was followed this tutorial (iPad Hello World) and was wondering if it would be possible to group items together on the table view. Basically, when the user opens the app the table view would say something like: Group 1, Group 2, and Group 3. When the user tabs on one group the table view would load the items in the group. If an...
This should be easy but its got me stumped. I've got a button on each row of a table cell. The button is to delete the file associated with that row. I have an image that indicates if the file is present on the iPhone or not present.
When the user presses the button, the target action method (showDeleteSheet) then calls a UIActionS...
Hi,
When I set the backgroundColor for my UITableView it works fine on iPhone (device and simulator) but NOT on the iPad simulator. Instead I get a light gray background for any color I set including groupTableViewBackgroundColor.
Steps to reproduce:
Create a new navigation-based project.
Open RootViewController.xib and set the table...
1 if (cell == nil)
2 {
3 [[NSBundle mainBundle] loadNibNamed:@"TVCell" owner:self options:nil];
4 cell = tvCell;
5 self.tvCell = nil;
6 }
There's some code from an Apple example of using your own "custom cell XIB" to create cells in a UITableView.
It appears to work... but I think I would do better to actually UNDERSTAND wh...
I am working in a app where i have data in UITableView. It is like a drill down application. User will click on a row and will go to next page showing more records in a UITableView. But problem in my case is that i dont know upto how many level user can drill. The number of levels are not fixed. So now i am thinking to create and add the...
I am trying to recreate the selection behaviour as seen in the built in iPhone Voice Memo App.
That is, in the voice memo list view, when the user selects an item, and there is already another item selected, the touch down doesn't select the cell immediately, but on touch up the previously selected cell is deselected and the new cell is...
I want to add an image using the cell.imageView setImage: method. However, depending on field from an array (in the form of an NSString and called using [dog types]) I need the image at the left-hand side of the cell to change to an image which reflects the type of dog.
How do I go about doing this? Thanks.
...
Hi,
I have a scrollview which has subviews one of which is a tableview. I have custom cells for the tableview. The contentview of one or more cells has buttons, labels. These buttons to get event fired. Can any one help me. I think the uiscrollview is blocking the event transfer. How do i resolve this.
--
Regards,
U'suf
...
What us the best way to paginate a large number of results that are being pulled from a sever? As far as the server goes, I can offset and limit the results so I'm only pulling maybe 25 at a time, but what's the best way to allow a user to view more results without constantly scrolling down a growing list like the app store app?
thanks...
I need to load a video stored in Applications folder in to a table view. When I touched the cell the video plays.
I used the following code to get all the video files in to an array.
NSFileManager *fileManager = [NSFileManager defaultManager];
NSArray* contents = [fileManager directoryContentsAtPath:@"/Users/srikanth/Desktop/...
I have a UITableview made up with a custom cell loaded from a nib. This custom cell has 9 UILabel s and thats all. When scrolling the table on my iPhone the tables scrolling motion is slightly jerky, its not as smooth as other tableviews! (On the simulator it scrolls fine but I guess its using the extra power of my mac)
Are there any ti...
I have a UITableView which only takes like 3/4 of the screen, but not the entire screen. Now I wonder if it matters to scrolling performance a lot, if outside the UITableView there are views with alpha 0.5?
When a table view scrolls, is the entire screen affected with compositing and drawing, or only the frame of the table view?
...
I have a UITableView being shown in a popover. One cell in my table view has a UITextField in it. When the text field is being edited (the keyboard is visible) and I rotate the device from portrait to landscape and then try to scroll the table view, it keeps going past its bounds, instead of stopping and "bouncing".
Does anyone know how...
hi every one.i am using TableView having edit button to delete a row.when i swipe in the row it shows a default "Delete" button. But i dont need it.The Content of the cell must be deleted by means of edit button not by default one.how to disable that "Swipe to Delete" Button.
...
Hi,
I have a table in which I want a dynamic image to load in at the left-hand side. The table needs to use an IF statement to select the appropriate image from the "Resources" folder, and needs to be based upon [dog types].
The [dog types] is extracted from an RSS feed, and so the image in the table cell needs to match the each cell's...
My app has a UITableView. That UITableView has a header view, which is a UIWebView.
By default, scroll views have their scrollsToTop property set to YES, which will enable the user to tap the status bar to scroll to the top of the scroll view.
When there are two scroll views embedded in one view, that both have their scrollsToTop prope...
Hello!
I have a rather simple iPhone app consisting of numerous views containing a single, grouped table view. These views are held together in navigation controllers which are grouped in a tab bar. Simple stuff.
My table views do little more than list text (like "Dog", "Cat" and "Weasel") and this data is being served from a collectio...
Hi !
I have a problem which I dont have a clue how to work around. Maybe anyone of you could help me to the correct directions...
Simple I have a UITableView with each cell containing a UITextField. When I´m editing a cell (UITextField) and hit Return Key, a new row is inserted under the current cell. After that I reloadData on t...