indexPath.row returns null in tableView didSelectRowAtIndexPath:indexPath
I thought it was supposed to return the row selected.
When i look at indexPath in the debugger it (corectly) returns: "2 indexes [0, 0]"
Am I missing something?
...
Hi all,
I'm building an iPhone app with a UITableView. On selecting a row, I'd like a UIWebView to be pushed in loading a specific URL.
I currently have:
- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath {
NSDictionary * story = [stories objectAtIndex:[indexPath row]];
NSString * storyLink =...
Hello,
I'm trying to create a view programmatically. The result that i want to have is a scroll view with a tableview inside. And under this table view i want to add some buttons
I don't know exactly how to do that i tried this but it doesn't work :
- (void)loadView {
[super loadView];
tableView = [[UITableView alloc] initWit...
I have a view with a UILabel and a UITableView. I'm using this code to get a string from a database:
-(void)getOneQuestion:(int)flashcardId categoryID:(int)categoryId {
flashCardText=[[NSString alloc] init];
flashCardAnswer=[[NSString alloc] init];
NSString *martialStr=[NSString stringWithFormat:@"%d", flashcardId];
...
I currently have a TableView with over 35,000 cells. Obviously the standard iPhone flick-and-scroll becomes inefficient with this many cells. I have already implemented search but still think that a way to scroll the entire table is necessary. I am currently using the
-sectionIndexTitlesForTableView:
method to populate the side wit...
I have created an up/down arrow segmented control button on the right side of the navigation bar in my detail view. In a table based application, how can I use these up/down arrows to move through cells in the parent table?
The apple "NavBar" sample code has an example of this but the controls are not functional.
The iBird program has...
I've finally finished my first large application, the only problem is that I've focued a lot on design, and I'm using custom nibs as cells with transparent backgrounds. When I tried testing the application on my iPhone, the performance was terrible.
Is there any way to get better scrolling performance while using transparent cells with ...
I'm working on modifying some existing heavy-handed code that simply calls [tableView reloadData] on any change, to using more specific table updates with the insert/delete methods.
However, I'm getting some really bad behavior in doing so. Previously, as one would imagine, when the table loaded, it only requested cells for the rows th...
I have an indexed table view and I want it to have a detail view when I click something but right now it just comes up with a screen with a navigation bar but no title and not text. Does anyone know of a tutorial that teaches you how to do that?
Thanks
...
Greetings! I'm trying to borrow the view flip concept from Apple's TheElements sample app. This sample employs a container UIView in which you can swap between two subviews. The flip is achieved using setAnimationTransition:forView:cache: and removing/adding each subview.
In general, the flip works and I can swap between my two views (a...
I've added a text shadow to cells in my UITableView to give them an etched look:
cell.textLabel.textColor = [UIColor colorWithWhite:0.2 alpha:1.000];
cell.textLabel.shadowColor = [UIColor whiteColor];
cell.textLabel.shadowOffset = CGSizeMake(0, 1);
Since the shadow color is actually white, when a row gets selected and becomes blue, th...
Hello all ,
I was wondering how I can realize the following:
Creating a next button and when it's tapped the next UITableview row will be selected.
Since a picture is worth a thousand words I've added a screenshot.
http://img529.imageshack.us/img529/4341/picture5uuj.png
As you can see below I added a toolbar and if I press the rig...
Hi,
I am new in iphone development, i am facing the following problem, please help me out.
i want to add UIViewContro
i have added a UIViewController by using xcode and added a UITableView as like: [UIViewController.view addsubView:UITableView];
this works fine now i am unable to add more things like:
1)numberOfSectionsInTableView
2)...
I wish to start at let's say row 2 with my content. I've tried putting in an integer for indexPath but that doesn't work.
So in the following example circumference would start at the second row ( and the rest would follow).
http://lh3.ggpht.com/_ixq8Dp4ESMo/SYuylQNqNCI/AAAAAAAAAFk/pPW6pbIlPGo/s576/Screen1.jpg
...
The standard Grouped UITableView style allows UITableViewCells to be drawn with rounded corners at the top and bottom of each section. How is this accomplished? How does the cell know its own location within its section, and how does it know when to change its rounded edges?
I want to make my own rounded cells, and I have images to us...
In my previous question I was asking for a next button and it had to act as if the cell was selected. Some decent answers were given and I was satisfied for the moment. However, I noticed that the actions behind my cells depend on a touch.
Now, I read some stuff on the UITouch and I was wondering is it possible to simulate a touch here...
Hi there,
I've got a grouped UITableView with a couple of rows, and I'm animating a few more rows in and out on the toggle of a button. The problem is that with any of the row animation types I'm using (top & bottom) the animation looks horrible! Here's a screenshot mid-animation:
Is there a reason why it's looking so bad? Or do all ...
I am trying to create a table view similar to the YouTube video uploader view in the Photo Gallery on the iPhone.
Here's the basic setup.
I have a custom UITableViewCell created that contains a UITextField. Displaying the cell in my table works great and I can edit the text with no problems. I created an event hook so I can view when t...
I copied these posts from a forum where I posted recently, but got no reply.
I have the base for my code all setup, it is a drill down table with navigation controller which loads data into a nsmutabledictionary from a plist with some empty values, on purpose. On command the app then downloads information which is then set, setValue, in...
I want to set the height of the first header in my UITableView. For the other headers I want them to remain the default height. What value/constant can I put in place of "someDefaultHeight" in the code below?
- (CGFloat)tableView:(UITableView *)tableView heightForHeaderInSection:(NSInteger)section
{
if (section == 0)
return kFi...