Hello!
I have a TabBar with ViewController in it. I do this in my AppDelegate. So I have one UINavigationController
test1ViewController = [[Test1ViewController alloc] init];
test2ViewController = [[Test2ViewController alloc] init];
test3ViewController = [[Test3ViewController alloc] init];
UINavigationController *navigationController =...
Does anyone know how to implement a view similar to the iphone calendar day view?
...
hi, i'm using a default style table,
i want to add more rows to the table, how can i customize it?
code:
UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:CellIdentifier];
if (cell == nil)
{
cell = [[[UITableViewCell alloc] initWithStyle:UITableViewCellStyleSubtitle
reuseIdent...
Does anyone have any advice on using a datastore with mapkit to provide a database of locations (Restaurants) that are query-able by location?
I would like to use Core data but importing the information into it seems like a project in itself. If anyone has good advice on converting an existing sqlite/cvs file to a coredata sqlite file t...
I have a UITableView in an iPhone application which I am refreshing (by calling [self.tableView reloadData] in the action method for a UISegmentedControl dynamically embedded in one of the UITableView cells. The table view is refreshed to update a text value for one of the cells.
However, the following code seems to produce an unwanted ...
Hi,
I'm still pretty new at iPhone development and I'm running into this odd build error which I do not understand. I'm trying to build and run my iPhone application and XCode is telling me that it can not find NSPredicate. To my understanding it was made available in iPhone SDK 3.0 and I'm trying to build for 3.1. I set the target t...
I'm getting this error when trying to see the contents of a NSMutableArray:
Program received signal EXC_BAD_ACCESS, Could not access memory.
Reason: KERN_PROTECTION_FAILURE at address: 0x00000021
0x94d5a688 in objc_msgSend ()
ViewController.h:
@interface PeopleViewController : UITableViewController {
NSMutableArray *people;
}
@p...
Hello,
How to "clean" static int variables in a view class method? Every time a get back to this view I need those vars "zeroed". The [self.view removeFromSuperview];
instruction does not seem enough to free up memory from those vars.
Thank you. Have a great 2010!
These int vars are declared static in a view method. They are not globa...
Hey there,
I'm using core-data and I have an entity that has an attribute called SID and another called ParentSID.
I'm trying to create a method where I can pass a fetched object from the set and it will return the lineage of that object by checking the ParentSID of each ancestor.
If the ParentSID is > 0 it should loop recursively u...
Hi
I am trying to switch between views.
The classes inherits from UINavigationController.
I am using this code in my IBAction:
CellSubview *personView = [[CellSubview alloc] init]; // The new navigation controller
self.modalTransitionStyle = 0; // tried all 3 of the options
[self presentModalViewController:personView animated:YES]...
Hi there.
On selecting a cell in a UITableView (which itself is placed on the rootView of a UINavigationController) I push a new SubviewController (which has another TableView as its view) onto the NavigationController.
It all works fine, but when it gets displayed it has a transparent Border around it (the same width on all the sides)....
If I have multiple text fields and would like to have a button that clears all text fields at once, what tutorials or direction should I look into doing this? Any help would be greatly appreciated.
...
Hi,
I am simply logging a number using a for-loop.
for (i=0; i<6; i++)
{
NSLog(@"%d",i);
}
It prints the number in new line like:
1
2
3
4
5
But I want to see it formatted on one line like 12345.
How can I do this, any idea?
thanks
Aaryan
...
I wonder which will be the best route for build edit forms on the iPhone, using a TableView or using a scrollview.
I need:
Support up to 15 fields (similar to contact app)
The same behavior of safari forms, where is possible go back/forward among fields, and the form center the selected field and stay there when the user end the editi...
Hey there,
I have an NSMutableArray of objects. Each object has a property called "Name". I want to join them together in a string with a separator " > ".
So if the name property in each of the objects in my array is "one", "two" and "three" respectively, the result would be "one > two > three".
Thanks,
howie
...
Apple's documentation states
You should also retain connections with APNs across multiple notifications. (APNs may consider connections that are rapidly and repeatedly established and torn down as a denial-of-service attack.)
What does this mean in practice? How often can you open and close connections? Are you supposed to always...
I'm currently working on reading some XML from an external API.
The following code works fine:
NSError *error = nil;
NSString *xmlString = [[NSString alloc] initWithContentsOfURL:url encoding:NSUTF8StringEncoding error:&error];
However, I wanted to add some error handling ("The server cannot be reached", "No Internet connection" etc...
Hi,
I'm working on my first app now and it's going quite well, but I'm wondering if i'm using the correct app design.
I'm building an app which makes use of a navigationController to display a couple viewcontrollers.
In the first viewController a CustomObject is created and in the consecutive viewControllers properties for this custom...
I get this message on the debugger console, but the application seems work. The full console below.
[Session started at 2010-01-05 20:17:29 +0100.]
Warning - No location found for "BGTangramLevel.m:1"
Warning - No location found for "BGTangramClues.m:1080"
Warning - No location found for "BGTanRender.m:143"
Warning - No location found f...
I have a UITableViewCell that I would like to add a view to the right (in addition to the accessory view). I tried setting the size of textLabel to be a few pixels narrower but it just resizes it back.
Is there any way to resize textLabel?
...