Hi.
Does anyone know a simple way to manage several tableViews in one viewController?
Here is how I've been doing it so far:
-(NSInteger)numberOfSectionsInTableView:(UITableView *)tableView
{
if(tableView == self.tableView1)
return 1;
else if(tableView == self.tableView2)
return 2;
}
-(NSString *)tableView:(UITableView *)tableView t...
Lets say i have a little bit of code I would like to repeat a number of times. How should I best include this in my iPhone app to only have to write this once?
Its a typical TableView Controller App.
//Set Icon
UIImageView *imgView = [[UIImageView alloc] initWithFrame:CGRectMake(30,25,20,20)];
imgView.image = [UIImage i...
I have a tableview controller under a navigation controller. Some of my table cells contain text fields, so when I tap on them, a keyboard will show up and automatically resize (shrink) the bounds of my tableview. The bounds is then restored when the keyboard is dismissed programmatically by calling resignFirstResponder on my text field....
Hi i have added a segmented control to a detailview header in a subview of a uitableview table and used images for up and down to create a up and down control like the one in mail.app. the buttons are working fine.
im after some advice on how to get rid of that items view and reload the next item without having to go back to the main ui...
Hi,
I have a tableview in the midddle of my tab bar template application..
I wanted to add the contents of the NSMutableArray called 'routines'.
Here is my .h file
#import <UIKit/UIKit.h>
@interface FirstViewController : UIViewController <UITableViewDelegate, UITableViewDataSource> {
NSMutableArray *routines;
}
@property (nonatomi...
I am a working UINavigationController pushing two different UITableViews on and off the stack. All of my functionality is working correctly except scrolling. When either table is scrolled above the top row, or below the bottom row, it stays there exposing the margin above/below the table. I am looking for the table to "bounce" back so...
Hi,
I have a list of items, and in a modal view controller, i have what is effectively a 'New item' screen, where a user can type in a new thing for the list.
The list is a UITableView, with data source, NSMutableArray.
here is the code on the MVC
-(IBAction)done{
[RoutineTitle resignFirstResponder];
[RoutineInvolvment resignFirst...
Hi all. I'm using a UITableViewCellStyleValue2 cell in my UITableView in my app and I want the left column (the blue text - self.textField) to be much narrower than the default. I've tried setting the self.textField.bounds after creating the cell but this doesn't seem to work - looking in the debugger it appears the bounds haven't been ...
I have read many topics about UITableViews not refreshing on iPhone, but couldn't find anything matching my situation, so I'm asking for help.
In my class, which extends UIViewController, I have a TableView and an 'ElementList' (which is a wrapper for NSMutableArray) used as data source.
A separate thread adds a new Element to the arra...
Just wanted to ask you if there is an easy way to add description text between sections in UITableViewController ?
You can take a look at what I want to do in "Settings > General > Keyboard" in your iPhone/iPod.
...
Hi all.
I'd like to have all the rows on my table view use UITableViewCellAccessoryNone (e.g. no button on the right) unless they are selected, at which point I want to use UITableViewCellAccessoryDetailDisclosureButton. E.g. only one row (or none if there's no selection) has the button at a time.
Is this possible? Doing the usual thi...
I have a UITableViewCell which has a UISlider in it. I have a footer text for the tableview that I would like to update with the value of the UISlider.
However, calling [self.tableView reloadData]; does not work for the UISlider, as it is too many calls. I am able to update the cell correctly (it also shows the value), but I am unable t...
I am new to iphone development.I want to change the color of the title to brown.In default it is in gray color.To display the title i am using the following method.
- (NSString *)tableViewUITableView *)tableView titleForHeaderInSectionNSInteger)section {
return @"Title";
}
I want to change the title backgound color.
please help me ...
My UITable View does not refresh from its data source of an array, which is edited but the Modal view controller.
I have confirmed that the editing works fine.
And I have this tried these,
- (void)viewWillAppear:(BOOL)animated
{
[myTableView reloadData];
NSLog(@"Routines: %@", routines);
NSLog(@"refreshed!");
}
and
[self.myT...
I am working on an app where i have a view controller that contains a view in that view i have a button that when pressed i would like it to load my tabViewController.
I trying to get a splash screen to load before my app so i can do some downloading and parsing of data before i load my tabViewController because the data im putting the ...
Hey,
I want to set up my app as a free version and unlock it with in app purchases, just so I'll get more exposure. The free version should be limited and therein lies my problem.
My app uses core data heavily and to make the free version, I just want to limit all records displayed to 1 row in each tableview, or if anybody else has any ...
I chage size of cell of a table to 20 but Delete button don't change. So, how to resize this button is this case?
Please help me!
...
I'm finding customizing UITableView's separator line graphics.
It's basically a single line and it can be hidden. But I cannot know how to draw separator with my own custom graphics or image. Is there a regular way to do this?
Or do I have to draw all myself and manage them manually?
...
Hi!
I have a Navigation-based Aplication where I have many view controllers each one with a tableview.
The access to the view controllers depends on which row the user selects.
Now i'm having a problem which is: when i select a row in the first viewcontroller i go to the second view controller but the tableview in the second view control...
I have two programs that basically do the same thing. They read an XML feed and parse the elements. The design of both programs is to use an asynchronous NSURLConnection to get the data then to spawn a new thread to handle the parsing. As batches of 5 items are parsed it calls back to the main thread to reload the UITableView.
My is...