iphone

Core-Plot iPhone Animation Examples

Hi, I've been looking into core-plot for the iPhone and I'm having trouble finding any examples of animation actually being used. What I need to see is an example of how to use core-plots animation to add an extra plot to a graph when someone clicks a button. If anyone can produce and example, or show me a link to one, that would be g...

How to detect page change in UIWebView and do something before it starts loading?

I need to do something on each page change, before that page starts loading/executing. First, I tried using -webView:shouldStartLoadWithRequest: but that won't work, because it's also called for XHR requests and iframe requests. Second, I tried using -webViewDidStartLoad: and comparing webView.request to it's previous value, to see if ...

want to add UInavigationBar rightBarButton like 'Now Playing' button of ipod, which doesnot disappears between view Transitions

hi, i am new to iphone dev, i want to add a button (sign out) which remains fixed on the navigation bar's right side for every view.i.e. even when tabs of TabBar are tapped, the Sign Out button should remain fixed. Any help/suggestions would be appreciated. Thanks ...

Trying a tiny winy 3D classes for iPhone

Ok, I'm trying to save some time creating some generic classes to draw objects in the 3D space. I created a Object3D class with the properties x, y, and z. The thumbnail3D is a "son" of Object3D using inheritance. Vertex3D is a struct with a GLfloat for every coord. The problem is when I try to compile the method initWithPosition:( V...

How to get Apples buggy "Locations" example to work?

Unfortunately, Apple did not test it's tutorial at all. The "Locations" demo is really buggy and the edit Button does not even exist. I have no typo. First I didn't do copy & paste, and after that, I also attempted to just copy&paste their stuff. A lot of relevant code is completely missing. They simply do this in view did load, without...

How to delete cells from a table view?

I have an Edit button in my navigation bar, and I have an table view. My edit button calls an -editAction method. And then, I have this piece of code to delete a cell, but I don't know how I can make the edit button to call this code...or how the edit button can let the table view display those red delete circles for every cell, which ...

what is the difference between self.navigationController and Delegate.navigationController

i can use MyFirstAppDelegate * Delegate = (MyFirstAppDelegate *)[[UIApplication sharedApplication] delegate]; [Delegate.navigationController popViewControllerAnimated:YES]; or [self.navigationController popViewControllerAnimated:YES]; So what is the difference between both ? Please answer me ...... Thanks in advance.. ...

iPhone: mapView.showUserLocation. VS locationUpdate function

Hi, I have a question. I'm developing on an app that is location-based, I have a mapView set to show the user location (mapView.showUserLocation); I also have a locationUpdate function to retrive lat/long of current position: (void)locationUpdate:(CLLocation *)location{} After I call the function stopUpdatingLocation to stop the upd...

How to prevent keyboard changing from Numbers to Alphabet when the space key is touched?

I have UITextFields on a table to enter values. Some of these fields accept only numbers. I am using UIKeyboardTypeNumbersAndPunctuation for the keyboardType, and shouldChangeCharactersInRange to filter the characters. Also, all the corrections are disabled: textField.keyboardType = UIKeyboardTypeNumbersAndPunctuation; textField.autoco...

Custom UITextView

Hi guys! As posted throughout the web, the only way to display html content inside UITextView is by using a private API function setContentAsHTML, and if you use this function you won't get your application on AppStore. But there are several word editors which seem to be using UITextView or maybe a custom one made by themselves in their...

Low memory problem drawing a route with MKAnnotationView

Hi! I'm drawing a route like it's done in http://spitzkoff.com/craig/?p=81 but i'm not loading de coordinates from a file, i get the coordinates from GPS with CLLocationManager. The problem is that my app crash with low memory in the device. I guess it's the way i'm drawing the route. In - (MKAnnotationView *)mapViewMKMapView *)_mapVi...

IBOutlet keyword strictly required?

Hello there, I am pretty new to iphone programming therefore I apologize if my question could result trivial or obscure. In many examples and tutorials I have seen that in the declaration of the outlets within Xcode (interface section of the view controller) the keyword "IBOutlet" is used or it is not, in conjunction with the class the...

iPhone sending POST with NSURLConnection

I'm having some problems with sending POST data to a PHP script with NSURLConnection. This is my code: const char *bytes = [[NSString stringWithFormat:@"<?xml version=\"1.0\"?>\n<mydata>%@</mydata>", data] UTF8String]; NSURL *url = [NSURL URLWithString:@"http://myurl.com/script.php"]; NSMutableURLRequest *request = [NSMutab...

Core Data One to Many Relationship - Does Many contain attribute with value x

Hi All, As before, I have User and Friend entities, One User to Many Friend(s). I would like to be able to check to see if I have already previously added a Friend (whilst at this point only knowing the name of the potential new Friend at the time). So NSString *name = @"Bob"; Bool exists = NO; for(Friend *friend in user.friends) { ...

Multiple instances of iPhone Simulator ??

Is it possible to have more than one iPhone Simulator Application running at the same time ? I would love to be able to do so because I'm working with some networking applications and it's really painful to deploy every single time I want to test stuff... this could be a huge time saver for me. Thanks ...

How do I name a file differently everytime I allocate it?

The Code: // Inside my BoardsViewController.m - (void)createImage { imageCounter ++; board = [[Boards alloc] init]; [self.view addSubview:board]; [board release]; board is supposed to be changed everytime, and is instead of being named board: be named 1_board, 2_board, 3_board, everytime I call this method ...

[iPhone programming] UIImagePickerController run out of memory with camera source

Hi everyone. I got a big performance issue using UIImagePickerController and saving the image on disk. I can't figure out what I am doing wrong. Here is my code : - (void)imagePickerController:(UIImagePickerController *)pick didFinishPickingMediaWithInfo:(NSDictionary *)info { UIImage *image = [info objectForKey:@"UIImagePickerControlle...

Can I show/hide a certain cell in an UITableView depending on the state of another cell?

I have a UITableView with style "Grouped" which I use to set some options in my App. I'd like for one of the cells of this UITableView to only show up depending on whether another of this UITableView's cells is activated or not. If it's not, the first cell should show up (preferably with a smooth animation), if it is, the first cell shou...

Can I develop for IPhone using Pear-PC or similiar besides VMWare?

Good morning I've got Windows Vista and Windows 7 here. I intend to create an IPhone application which connects to my website in order to read and show some database records. I cannot afford a Mac Mini or buying expensive hardware and software. I was wandering if it's legal and possible to create IPhone applications, running Mac OS ...

Regarding addressbook iphone

Hi, I am using ABPeoplePickerNavigationController to display contacts.Record id of contact is getting change if I exit and reopen my application.the record id of iphone is unique or not please help me..as i want to access record id. ...