Hi,
Basically I'm trying to add a search function to my iPhone app, but I'm not having much luck at the moment. I've downloaded the Apple provided Table Search app, and have copied across the code to mine. It builds OK, but here's the problem. Unlike the Apple example, all my data is stored in an array, that is accessed by calling [ciPa...
I have a struct SystemStruct *sharedStruct = [SystemStruct sharedSystemStruct]; implemented as a singleton, to share 3 Arrays.
the problem is that when i try to count the array's objects the system crash.
es:
This code Crash:
- (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section
{
SystemStruct *Sha...
I have a TableView controller class that uses a fetched results controller to display a list of 'patient' entities taken from a Core Data model. The sections of this table are taken from a patient attribute called 'location'. Here is the sort descriptor for the fetch request:
NSSortDescriptor *locationDescriptor = [[NSSortDescriptor all...
I am currently trying to make a sectioned table like this:
Section 1:
Entry 1
Entry 2
Entry 3
Section 2:
Entry 4
Entry 5
Entry 6
Section 3:
Entry 7
Entry 8 ...
However, using this code:
Event *lists = (Event *)[eventList objectAtIndex:indexPath.row];
accessStatement = "select * from DatabaseName";
[self findEvents]; // Code that b...
Hello,
I have a grouped UITableView where not all sections may be displayed at once, the table is driven by some data that not every record may have. My trouble is that the records that don't have certain sections show up as blank spaces in the table (see picture)
There are no footers/headers. Anything I've missed?
- (NSInteger)ta...
there is a great tutorial about tableview posted on youtube that contains 5 parts. Unfortunately, I reload videos and checked several times the code and application keep crashing.
link 1st part: http://www.youtube.com/watch?v=tMo8T1uh77E
Anybody that also follows this tutorial to discuss possible failure?
thanx
...
I want to build a train arrival time reference app, that lets me choose different stations and displays times from A to B, and times from B to A. So I'm using Apple's Page Control because I want to have multiple pages for each station, and each page would list all the train times. Here's my appdelegate:
#import "AppDelegate.h"
#import "...
I have added custom animation to UITableViewCells. Each cell has its own animation. When I pop the view, the animations continue and I get a bad exec error because the animation is trying to access the deallocated cells.
How do I stop the animations before the view is deallocated?
- (void)tableView:(UITableView *)tableView accessoryBu...
Hello,
I'm still rather new to iPhone development and I tried something I didn't it was possible. I have a UIView for my TableView Section Header with a switch on it, and I also have a UITableCellView with another Switch on it. It all looks fine, but now I want to propagate the UISwitch state from the section header to all the UISwitches...
I have an app that is a list of tasks, like a to do list. The user configures the tasks and that goes to the SQLite db. The list is displayed in a tableview.
The SQL table in question consists of a taskid int, groupname varchar, taskname varchar, lastcompleted datetime, nextdue datetime, weighting integer.
I currently have it working ...
I have a UITabBarController with a "More" tab whose color scheme I would like to modify.
Navigation Controller Nav Bar Colors
I've been able to change the background color of the "More" tab's UINavigationController by subclassing the UITabBarController and adding the following code to the ViewDidLoad method:
UINavigationController *mo...
Hi,
I am using one UIViewController as shown:
@interface RssViewController : UIViewController <UITableViewDataSource,UITableViewDelegate,BlogRssParserDelegate>
I am displaying an RSS feed in the UITableView (in RssViewController) depending on the segment selected on the UISegmentedControl.
My app crashes when I scroll the tableview...
I need to pop up a quick dialog for the user to select one option in a UITableView from a list of roughly 2-5 items. Dialog will be modal and only take up about 1/2 of screen. I go back and forth between how to handle this. Should I subclass UIView and make it a UITableViewDelegate & DataSource?
I'd also prefer to lay out this view in ...
I have a view controller that gets presented modally and changes some data that effects the data in a uitableview in the modal's parent view controller (a table view).
I call the tableview's reloadData method when the parent view reappears. I have confirmed that this code gets hit with a break point. My trouble is, reloadData isn't work...
When you have a sectioned, plain-style tableview on the iPhone, such as in the Contacts app, the section headers remain visible when you scroll past them until they are pushed offscreen by the next section header.
Does anyone know how to achieve something like this in an ordinary scrollview? I already have one scrollview nested in anoth...
hi guys
I would like to select a cell in a tableview, except with code before any user interaction.
Is this at all possible, a quick search through the sdk notes doesnt yield anything. Where should I look?
Regards
...
hi all
i got the problem that the tableview methods are not called the first time the tableview is shown. if i switch back to the previous view and then click the button to show the tableview again, the methods are called this time.
i've to say that i show an actionsheet while the tableview is loading. the actionsheet i call in the Vie...
I have a UITableView which is a read-only, no-scrolling view. It's a subview of a view that manages taps. I'd like to pass through any tapping on the tableView to its superView.
I've seen lots of examples of doing this, but nothing that seems to apply to the tableview.
Any direction would be helpful. Thanks!
...
I am populating a UITableViewController's UITableView through code only. At the bottom of the table I wish to position a button that scrolls into view as the user scrolls to the bottom of the table.
When in the UITableViewController life cycle should I populate the table footer with a button? viewDidLoad?
p.s. I wish to avoid using sec...
Hey guys,
I'm trying to display nutritional information in a table view but am struggling about the best way to show the info. I don't want to create unique views for each page as that would take up a lot of space. My ideal avenue would be like a website having links to data pages instead of individual views for each page. How would I b...