uitableview

TableView oval button for Index/counts

Can someone help me create an index/count button for a UITableView, like this one? Is there an Apple example, or other tutorial? Thanks, Jordan ...

Replace Xcode's Navigation template UITableViewController with a UIViewController and UITableView

Is there any simple way to replace a UITableViewController from Xcode's "Navigation based application" with Core Data with a UIViewController containing a UITableView? I'm looking to add things that the normal UITableViewController can't have, so I replaced it with a UIViewController, but my problem is that whenever I do replace the UIV...

UITableview attempt to load closes app.

Hi, I have a TABBAR app with a custom mod that brings up an alertview when you press a tabbar button. This then loads a UIViewController using initwithNibName depending on the menu option you choose. That shows a UIView that works fine. The view downloads a url and prepares an array for a tableview. That's when the trouble starts. ...

Method to Display Cell Again in UITableViewController

Which method should I use in order to display a cell again in a UITableViewController? ...

iPhone SDK: How/when should I release a UITableView delegate object?

I am using a custom class as the delegate and datasource on a UITableView. I'm doing (something like) this in my viewDidLoad method: MyClass *myObject = [[MyClass alloc] init]; tableViewOutlet.delegate = myObject; tableViewOutlet.dataSource = myObject; Surely I need to decrease the retain count on myObject somewhere? But calling [my...

how to add UITableView to a view based application: iPhone sdk question

I have a View based application that navigates between all views properly. And now I have to add a UITableView to this application, I am unable to do that. I could add a UITableView, thats fine, but no idea about adding data source to it. I searched a lot and found only examples begin with navigation based applications. I have created a...

Is it possible to access a UITableView's ScrollView In Code From A Nib?

Right now I am creating a UITableView in a FlipsideView nib. I don't seem to be able to change the background of the table view from within interface builder. I can fix this by creating an outlet and then setting the background. However, I want to give the scroll view rounded corners in order to create a look similar to the iPhone wea...

Thread-safe NSMutableArray question

I am developing a RSS reader which uses a NSMutableArray (_stories) to store the contents of the RSS Feed. This array is being used by two different threads in the application and may be accessed simultaneously in two occasions, since: It is the data-source of the UITableViewController (which reads it's content and shows the desired in...

UITableView shows some gapped cells

Hi folks, During my iPhone app development, I saw this curious UITableView behavior which can be seen into this posted image: http://img690.imageshack.us/i/screenone.png/ It happens after adding more cells to the table by touching in a "More" cell button at the end. I can't figure out if the problem is the table data source or not? C...

initWithNibName VS NSBundle's loadViewNamed

I've noticed that there are two different ways to load nib files: 1) via the UIView's initWithNibName:bundle: method and 2) NSBundle's loadNibNamed:owner:options: method. Can someone explain the differences between these two and when it is more appropriate to use one over the other and in what circumstances? For instance, if I'm loading...

Help needed in iPhone TableView

Hi all, Insted of the default header in the UITableView i implemented a custom table header using - (UIView *)tableView:(UITableView *)tableView viewForHeaderInSection:(NSInteger)section I used this method because i need to view my lengthy string within that header, so that i can reduce the size of the header font size. But when i im...

Error Handling in Xcode, iPhone SDK

In Visual Basic, there's a line of code you can use to handle errors in code "On Error Resume Next" Is there something similar in Objective-C? My problem is I have an "Add New Cell" add button that creates a new cell during runtime. However, the cells are re-orderable. When you try to re-order the "Add New Cell" cell, I get an index o...

iPhone UITableView populated by checked Table Cells. How?

I came upon this blog post the other day and literally have no idea how to implement it, logically. Any ideas? I was thinking it involves core data, with 'power' being another entity in a to-many relationship, besides that, I'm lost. ...

Can I call -indexPathsForVisibleRows after scrolling UITableView without subclassing?

After each scroll (however large or small) of a UITableView, I would like to call -indexPathsForVisibleRows to run a method on the data that corresponds to visible cells. Are there any existing notifications or delegate methods I can tap into when a UITableView is scrolled? I'd like to avoid subclassing. EDIT I ended up subscribing t...

Sending user to nested view

When a user shuts down my app, I'd like to send them back to where they left off. The app starts on a tableview, the user drills down to another tableview and then clicks a row for a detail view. When they startup the app again, I have two choices: 1.) Display options (alertview) for returning to the previous location or cancelling an...

Nonintrusive visual cue for uitableviewcell

I'd like to mark a tableview row in some way that shows it has been clicked by the user. I have a large number of rows and want users to know if they have already visited a particular row. This same technique will be useful for identifying row new entries as well. I have two questions: Would such a subtle technique violate the HIGS an...

UITableView selection hightlighted even after tableView reloadData

I am new to iPhone SDK. I have a UIScrollView and a UITableView on it. The UITableView has 4 cells. I use UIPageControl for pagination. When user selects, the cell gets highlighted and when the user scrolls to the next page the cell stays highlighted. I tried [tableView reloadData] and after the call I could still see the selected row...

Load a nib into an UIView?

Hey guys, I need some help. I've got a segmented control. if segment 0 is clicked it shows a UIView, containing a uitableview. If segment 2 is clicked it shows another UIView which contains a uitableview as well. These two tableviews got the same datasource. But i want the second tableview to have an other datasource. SO i thougth of ...

IPhone UITableView cells getting 'stuck' and mixed up with fast scrolling

Hi all, Based on Apple's TableViewSuite sample project (http://developer.apple.com/iphone/library/samplecode/TableViewSuite/index.html) I've taken the structure of number 5 there, to create custom drawn table cells. This is working great, and scrolling speed is fantastic now compared to when I was using nibs. It has however introduced ...

Disable iPhone table rows

Is there any way to disable the "selectibility" of a UITableView row? Example: I would like to make an appointment for a haircut at a certain time with a certain stylist. What gets displayed to a user is a list of times in half hour increments, but unavailable times are grayed out/unselectable. ...