iphone

Database Query Method in AppDelegate

Hi there I have a Sqlite DB with a query that is placed in the Appdelegate to return an array of objects. From other views I can instantiate the appDelegate and retrieve objects that are set there but I cannot pass a value to one of its methods such as below. If anyone has any advice as to how to do that I'd be grateful.Also is it bet...

performSelectorInBackground, notify other viewcontroller when done.

Hi, I have a method used to save an image when the user clicks Save. I use performSelectorInBackground to save the image, the viewcontroller is popped and the previous viewcontroller is shown. I want the table (on the previousUIViewController) to reload its data when the imagesaving is done. How can I do this? The save method is call...

cellForRowAtIndexPath never get called in Navigation-based Application

Hi! I have a Navigation-based Aplication where I have many view controllers each one with a tableview. The access to the view controllers depends on which row the user selects. Now i'm having a problem which is: when i select a row in the first viewcontroller i go to the second view controller but the tableview in the second view control...

Add (+) button in textField which will show up contacts tableview

Hi how can i show up View with Contacts list after pressing button. It's like in Mail.app a View appear after pressing (+) button with "Chose a contact to send" and after click it adds it into TextField ...

iphone maps app background image

Hey guys, can I get the background image from the Maps app (when the map is curled up and the segmented control for map modes is visible) from somewhere? ...

Why is UITableView not reloading (even on the main thread)?

I have two programs that basically do the same thing. They read an XML feed and parse the elements. The design of both programs is to use an asynchronous NSURLConnection to get the data then to spawn a new thread to handle the parsing. As batches of 5 items are parsed it calls back to the main thread to reload the UITableView. My is...

Calling one class file from another

I am new to the iPhone development environment so be gentle: Currently writing an iPhone game app that will also have a high score view. Was wanting to make this view so that it was on its own and I could call it from another class (.m file) Question is, how do you call another class file? I know I need to include the header from tha...

iphone + facebook, Data Store API

I'm doing a game that will connect to facebook once conected the game uploads your score and shows you a table with the score of your friends. I try to create an object to store data, but i couldn't do it. then I read this on the Data Store API documentation: Except for the User Preference API methods, all Data Store API methods have b...

iPhone UITableView - Delete Button

I am using the 'swipe to delete' functionality of the UITableView. The problem is I am using a customised UITableViewCell which is created on a per item basis in - (UITableViewCell *)tableView:(UITableView *)aTableView cellForRowAtIndexPath:(NSIndexPath *)indexPath I need to alter the position of the delete button (simply to move it ...

Capturing camera framebuffer on iPhone 3G (not S)?

I've downloaded a free application from App Store (very nice application for instance) called ReadTheQRCode and it dont asks you to take the picture to decode the QRCode, my point is, is the application using the framebuffer of the camera on iPhone 3G or it is taking several pictures at a given time, ommiting the iris animation, the edit...

Verifying the purchaser of an App Store application

Is there a way for the developer of an App Store application to tie a sale to an individual user/device ID/Apple account? In other words, a method for the developer to double-check that a specific user has legally purchased the software? I haven't been able to find a reliable answer to this yet. I'm not looking for specific code examp...

Use of HTML 5 doctype creates a gap at top of page on iphone safari browser

Update: Please disregard, my problem was caused by an advertisement bar being inserted by the vendor who provides my workplace wireless service. I was building a mobile friendly website and wanted to use HTML 5. However when I specify the doctype as <!DOCTYPE HTML> , I get a gap at the top of the page on safari on the iphone. I notice ...

How to restrict application distribution to a group of users only via Apple AppStore?

Hi, I'm a first time iPhone application developer and I'm developing application for my client who wish to distribute this application to a group of people related to his business only, and as FREE application only. This is such an application which is not meant for general users so we definitely don't want this application is publicly ...

iPhone Push Notification (PHP) aren't sending

I set up a PHP script to send push notifications using this tutorial. I run the script without any errors but nothing shows up on my device. What am I doing wrong? ...

How can an instance of an UITableViewCell, which was created by an instance of my ViewControllers, tell the ViewController, to do something? (Read my text)

Hello, I created a instance of my ViewController(TimeLineViewController), which will be presented. This ViewController contains a UITableView, which gets the cells from a instance of my TableViewCell. So the ViewController creates an instance of the TableCellView. The TableViewCell contains a UITextView with enabled weblinks. Now I want ...

Is it possible to force value in property setter?

What I want is to override UINavigationBar tintColor setter and force default color to it. Bellow is my code (which of course fails). Is there a way to make it work? @implementation UINavigationBar (UINavigationBarCategory) - (void)setTintColor:(UIColor *)tint { self.tintColor = [UIColor greenColor]; } @end ...

iPhone App Icons - Exact Radius?

Hi, I'm trying to create the icon for my iPhone app, but don't know how to get the exact radius that the iPhone's icons use. I've searched and searched for a tutorial or a template but can't find one. I'm sure that I'm just a moron, but how do you get the rounded corners exactly right with your icon from Illustrator or Photoshop??? T...

iPhone Core Data - Simple Query

Hello I am trying to create a Core Data iPhone application. One of the entities I'm tracking is cars, and one attribute of each car is "manufacturer". In the "edit car" section of my application, I have a UIPickerView that needs to be loaded with each of the unique manufacturers that have previously been entered into the system. What...

iPhone memory management problems

I detach a thread to my method wich has a while-loop and even if I have an autoreleasePool, I release the objects manually since the while-loop can continue for a while... The problem is that after a while, the app crashes due to memory problems and if I look in Instruments I can see a huge pile of NSString allocated and a stairway to he...

Question about how to present my problem well

Hi Guys: I am writing an IPhone IM Client that uses xmppframework. Now the app has contacts,chat history and can chat with another client. I want to present the app design (maybe a class diagram) to you guys and get some feedback to improve the app. How can I easily present my app design to you? I haven't found a nice tool to draw clas...