iphone

The mechanics of the iTunes store

Not specifically a programming question, but might be something a bunch of programmers run into. I wrote a really trivial application for the iPhone and submitted it for approvals. After a few back and forth (e.g. denied, then resubmit) of fixing various UI guidelines issues, I got an email today stating that: Your application is ...

How do I get a string into a format I can use with UIWebView loadRequest?

It turns out that if you load data into a UIWebView using loadHTMLString, that the webView will always return NO for canGoBack and canGoForward properties. Unfortunately, I have to extract fragments of text from a large file and then put that text into a webView with loadHTMLString. [aWebView loadHTMLString:aString baseURL:nil]; In ...

Turn off auto-switching when clicked on UISwitch?

Hey guys, So i've created a custom TableViewCell, and in the nib I put a UISwitch. Before I had even hooked it up to anything, if I ran it in the simulator and clicked on it, it would switch from off to on with the animation and such. I'm trying to add a feature where the user is only allowed to change from off to on when a certain ...

When to use a UIView vs. a UIViewController on the iPhone?

I have always sort of wondered when to use a UIView vs. a UIViewController on the iPhone. I understand that you shouldn't use a UIViewController unless it's a full-screen view, but what other guidelines are there? For example, I want to build a modal overlay - a screen that will slide into place over the current screen. If this modal o...

NSKeyedUnarchiver causing memory leak

Hi guys! I have a memory leak problem, I'm saving an array into a file using: [NSKeyedArchiver archiveRootObject:myArray toFile:MyFile]; the objects included into the array have the following methods: - (id)initWithCoder:(NSCoder *)coder { [super init]; parameter1 = [[coder decodeObject] retain]; parameter2 = [[coder decodeObject...

how can I fix the jumpiness problem on a moving <LI> stream jQTouch mobile web app (iPhone JavaScript)

I've got a mobile Web app built with jQTouch mobile web app framework, but when I try to add dynamic <LI> elements the theme starts jumping around like crazy. Includes a short JavaScript sample program that replicates the issue. I posted this issue on the jqtouch Google Code ticket system Issue 134: slidedown prepends LI but causes th...

Multiple UIView instance doesn't work

Hi, I have subclass UIView class in a Bounce class with Accelerometer. This Bounce class show an image and move it on the screen. When the iPhone device is moved, this image Bounce on the screen. When I create multiple instance, only last instance work properlty: // in the MainViewController.m Bounce *heart[100]; for(int i = 0; i < ...

UITextField Memory Leak

Hi, In my code, there is an memory leak, when the Keyboard appears for the first time when I am about to enter values in the UITextField. Can someone please give me some idea about this. In the Interface File IBOutlet UITextField *userEmail; @property (nonatomic, retain) IBOutlet UITextField *userEmail; Implementation File @synt...

tableView reloadData doesn't work

For some reason, [self.tableView reloadData]; just wont work. In my .h file I have: @interface SearchOptions : UIViewController <UINavigationBarDelegate, UITableViewDelegate, UITableViewDataSource> { IBOutlet UITableView *myTableView; ..... } I've tried: [self.tableView reloadData]; and [self.myTableView reloadData]; Any...

Math in Safari (especially iPhone)

Is there an easy way to display math in the Safari web browser? My main target is the iPhone safari. ...

How do I parse the PLS playlist format in an iPhone app?

I'm developing an iPhone application for a radio station. I'm in need of parsing playlist.pls and playlist.qtl, to get the stream audio url present in it. I'm stuck with that. ...

Returning multiple values from a method in Objective-C

I asked a similar question, but I couldn't get it working exactly. I'm building an iPhone app, and there is a method that I want called from different files. I figured the easiest way would simply be to make a method in another file, and call the method from the other files. Here are some problems. I need to return multiple values from ...

I want to learn all the internals and structure of the iPhone

Does anyone know of a website or resource to learn about important files / directory structures or data within the iPhone? Soon i'll be learning to develop iPhone applications and I want to know everything about its internals, if anyone knows a resourse that would be great. What I want to do is. How to access the database. Where syste...

How to detect stack objects falling down

Hi to All, In my game, Objects are falling down and I have to catch that object and have to create a stack. I am doing this by using chipmunk physics engine. I am able to create stack but I don't understand how to detect that stack is falling like "Tower Bloxx" game. If any one knows it please help me out. ...

Is it possible to get array of all index paths for the cells in a UITableView?

Is there a simple way to get array of all index paths for the cells in a UITableView? ...

What should be the reason behind this leaky line ?

I have follwowing peace of code in which I have specified the leaky line . As I am new to iPhone developement I can't understand what actually is wrong with that line . please have a look at that line and tell me . NSAutoreleasePool *pool = [[NSAutoreleasePool alloc]init]; //take away //NSURL *url1 = [[NSURL alloc] initWithStrin...

Is it possible to preload all the cells in a uitableview?

Is there a simple way to preload all the cells in a uitableview? I need to do this in order to change whether or not all the cells are checked. If I just use cellForRowAtIndexPath, and the user say unchecks all the cells, and then checks a visible cell and starts to scroll again, either the selected cell gets deselected or the newly loa...

iPhone facebook connect FQL Query to get user's friends

I'm trying to get a list of user's friends using fb connect for the iphone. I've tried both of the following FQL Queries, but they don't seem to be returning anything. which one is correct if any ? NSString* fql = [NSString stringWithFormat:@"select flid,name from friendlist where owner=%lld",[self fbSession].uid]; or NSString* f...

iPhone: Doubt on type of App ID creation?

What are the exact advantages of creating explicit App ID and Wild card ID? I saw that if we are creating bundle of apps, we can create Wild card App ID, otherwise explicit ID is good etc. But i am a bit confused and want to know more details about exact advantages residing on both types. If i have a free version first(1.0) and then wan...

Search MKMapView annotations

I've got several MKAnnotationView red push pins on a MKMapView in my iPhone application on several locations. I'd like to implement a search bar that can move the map region to show these pins. How can I do this? Alternatively, the area I'm concerned about already has text labels built into the google map, so I'm wondering if there's a ...