iphone

Add double tap action (presentModalViewController) to UISCOLLVIEW

I have been wrestling this issue for a while now and cannot seem to get the following "touchesEnded" method to execute within a UISCROLLVIEW. I have read on many of the forums that UISCROLLVIEW will take control of all touch events unless it is subclassed, but I cannot seem to get the code right (still new to the SDK). Basically I have...

iphone application

I am working on the module in which I have to decompress the data. The data comes from server which is zipped using gzip format. I am using NSData+Gzip.m file in which there is a function named "gzipInflate" to unzip the data. but it gives me the error "Z_OK -3". Now what is the solution of that error. How can I solve it. Please reply me...

recurcive webservice calling in iphone

hello everyone i am a new bee in iphone i have 7 to 8 webservices in my project i want to call and parse thoes 7 to 8 webservice on a single button clicked event please guide me how can i do that a sample code would be a boost to me ...

How to set 12 hour clock format for the entire iPhone application?

I would like to set the 12 hour clock format for my entire iPhone application irrespective of whether the user has set the iPhone device clock format to 12 hrs or 24 hrs. Please advise as to how this can be achieved. ...

Is there any mechanism provided by Apple Store to make the user sign-up to my website before he/she can download the application?

I am creating an iphone application that requires the users to have an account at my website. But if i have to distribute it through apple store, how should I make the users of this Iphone Application first create an account with my website. There could be a few options like : 1) Ask the user to create an account when he/she tries to ru...

Need advice on speeding up tableViewCell photo loading performance

I have around 20 tableview cells that each contain a number (2-5) thumbnail sized pictures (they are VERY small Facebook profile pictures, ex. http://profile.ak.fbcdn.net/hprofile-ak-sf2p/hs254.snc3/23133_201668_2989_q.jpg). Each picture is an UIImageView added to the cell's contentview. Scrolling performance is poor, and measuring the ...

iPhone SDK extract PDF text

Hi, i used some Quartz 2D examples to extract text from PDF with the callbacks CGPDFOperatorTableSetCallback(table, "TJ", arrayCallback); CGPDFOperatorTableSetCallback(table, "Tj", stringCallback); referencing the code from here: http://stackoverflow.com/questions/2362393/reading-pdf-files-as-string-through-iphone-application...

Why does voice recording cause a crash in my application on an original iPhone?

I have created a voice recording app. It works fine on an iPhone 3G but crashes on an original 2G iPhone. The crash occurs in the following methods: -(void)RecordbtnPressed:(UIButton *)sender { [Record removeFromSuperview]; stop.alpha=1; T=[NSTimer scheduledTimerWithTimeInterval:1 target:self :@selector(startTimer) userInf...

Is it possible to Prevent TO fileld to be edit in MFMailComposeViewController

in my Application i am using MFMailComposeViewController for emails... I am Adding to Field in it programmaticly... I want To prevent user to edit the TO field, User can't change TO field's email address... I am not able to find neither i know if it is possible or not It is not necessary but still code is NSArray *arr = [NSArray arr...

Releasing an app - Developed on one account, releasing/approving on another

Hi there, We have developed an application for a company who want to release it under their own account. It has been developed on our account and has had provisioning profiles attached to it from our own account. What is the best way to do this? Do I have to send them the xCode project and talk them through how to attack a provisioning ...

NSString - max 1 decimal of a float

Hi everyone, I would like to use a float in a NSString. I used the stringWithFormat and a %f to integrate my float into the NSString. The problem is that I would like to display only one decimal (%.1f) but when there is no decimals I don't want to display a '.0' . How can I do that? Thanks ...

Is there any way to control settings inside iphone app rather than settings outside the app?

Is there any way to control settings inside iphone app rather than settings outside the app? and I could not find what kind of item I will add to plist in settings.bundle in order to change font type for example; Times New Roman to Calibri I searched other references that people gave me 1 day ago but I could not find a point that make...

is it possible to delete in app purchase?

is it possible to delete in app purchase while it is in rejected state? i want to change product type: from (i.e. consumable to non consumable) ...

Trying to set up iPhone-gcc compiler

So I've installed iPhone-gcc, make and ldid from cydia, i can't compile yet though because I don't have the headers setup. I've looked around and there's not really much info on setting up the headers, librarys and frameworks. I just need to know where to extract them from the sdk and where to place them on my iPhone. I've been trying t...

Addressing a memory leak stops my UI from showing iphone

Hi I've being getting a memory leak warning with a UITabbarcontroller. If I release the tabbarcontroller the warning goes away but the tabbar will not show any content. If I debug the app with the warning still in it the app runs but will crash after a couple of minutes UITabBarController *tabBarController = [[UITabBarController alloc...

convert string to date and write back into NSMutableArray

I have a NSMutableArray I get by loading a plist into it. The date field comes in as a string and i want to change it into a nsdate. I can change an nsstring into an nsdate. My array is an array of objects like the one below; { Date = "1/1/2009" Description = "Have you ever looked at a badger and thought i wonder how far...

willDisplayCell and UITableViewCell label background colors

My question relates to stackoverflow 1184014. Basically I have customized the background of my UITableViewCell (clear color) in my -(void)tableView:(UITableView *)tableView willDisplayCell:(UITableViewCell *)cell forRowAtIndexPath:(NSIndexPath *)indexPath and it's all good until I overlay an UIActionSheet over the Table. If the curre...

Trying to understand NavigationController retain count for ViewControllers on its stack

I have an UITableViewController as the rootViewController for my navigatorController. When I press a table cell I do the following: - (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath { MessageHistory *msg = (MessageHistory *)[[self fetchedResultsController]objectAtIndexPath:indexPath]; Conversa...

How to provide localized text?

Is there a simple-to-get instruction on how to localize text on the iPhone? I have some strings which need to be present in a localized form. ...

using AudioQueues with AudioFileReadBytes

Hey Im trying to work with Audio queues to play a very big mp3 file (arround 23 hours long). when audio queue asks for buffers though callback, im using AudioFileReadBytes() API to read the bytes from audio file and feed the queue. startQueue fails with the error : prime failed any inputs????? Also I succeeded playing file using AudioF...