iphone

Dismiss UIACTIONSHEET before device rotate!

In portaint Actionsheet show in tabbar. In landscape - in window. I heed do remove UIActionSheet from tabbar before rotate, for after rotate show in wondow. Inside – willRotateToInterfaceOrientation:duration dismiss action sheet dont work. Please help me! ...

Do simple task in the background after a long time on iOS 4+

How can you have the simplest tast happen after 5-10-60 minutes on iOS? Essentially, have an NSTimer fire after a predefined interval. I do "begin task", sleep( for some time ); and then "end task". However my app usually gets killed if I sleep for more than 5 minutes. I've seen posts around that mention that apps can stay alive in the ...

Create a certain size file and filled with no data on iOS

Hi, I'm developing an iphone app, I need to create a certain size file on filesystem and filled with NO data first, then seek to a offset and write data when get data from somewhere else How can I do it? ...

How to read cue points from a video file ( iPhone Development )

hi all, I have a quicktime movie where I embedded cuepoints. In Flash, it is easy to play the video and catch the cuepoints so you can trigger something when necessary. I want to achieve the same thing in an iPhone application. I have found no concrete information, is this not possible? Greets. Thomas ...

Want to create a container class which will only exist once.

I want to make a class that can hold settings for my app. Its pretty basic. I will access it from a few different classes, but only want 1 version of this container class to exist so they all see the same data. Is there something special i need to flag for this? Here is what I've done so far: Filters.h #import <Foundation/Foundation....

NSFetchedResultsSectionInfo disagrees with itself about how many objects it has

I posted this on the Apple dev forums here since it feels to me like a bug in the actual SDK, but I thought I'd post it here as well and see if anyone could verify whether or not I'm using this thing incorrectly (doesn't seem like it) or this is broken behaviour. https://devforums.apple.com/thread/72738 -- After spending a little whil...

How to Zoom In/Out Photo on double Tap in the iPhone WWDC 2010 - 104 PhotoScroller

Hi All, I am going through the Sample code of iPhone WWDC 2010 - 104 PhotoScroller App. It's working great with my project related images (PDF Page Images) but I am struggling detect touches in the PhotoScroller App. The Zooming using multiple touches is handled by the ScrollVoiew. Now I want to Zoom In/out the photo on double Tap. The...

UIActionSheet Customization

Can you control the size of the text and it's alignment on the action sheet? Also, Can you decide the order in which the destructivebutton and otherbuttons will appear on the action sheet? The screenshot like screen is what I am trying to create. Thanks in advance ...

how to deselect a selected UITableVIew cell?

HI, i am working on a project on which i have to preselect a particular cell. i can per select an cell using willDisplayCell. But i couldn't deselect it while the user click on any other cell. - (void)tableView: (UITableView*)tableView willDisplayCell: (UITableViewCell*)cell forRowAtIndexPath: (NSIndexPath*)indexPath { ...

JavaScript based iPhone UI framework

We have a push based web-application. Recently, we planned to make an iPhone app for it. Much like Facebook has it's iPhone application as well as web presence. We are looking for a UI framework that can get us going quickly. I've leafed through PhoneGap and couple other JS based UI frameworks mentioned here. I am bit unsure what can sui...

Http Post Request

How to make Http Post Request using JSON .I tried every option which is available on Internet .but couldnot get the Data .So please post entire code to make a request ...

iPhone: memory leak on autoreleased object?

Dear all, I am using the XMLParser class, which contains an array with XMLElement objects. The XMLElement is being allocated using the autorelease operation. However, for some reason I'm getting a memory leak (using instruments) on this line: self.currentElement = [[[XMLElement alloc] init] autorelease]; I'm also releasing the XMLPar...

Is there a way to open my application on a specific tab upon receiving a push notification?

Title says it all ^^ Thanks in advance, Lewion ...

cancel a UILocalnotification

HI I m creating a UILocalNotification for IPhone for repeated Interval for everyday. -(void)createNotification { UILocalNotification *localNotif = [[UILocalNotification alloc] init]; if (localNotif == nil) { NSLog(@"createNotification IF"); return; } NSLog(@"createNotification"); NSCalendar *calendar = [NSCalendar autoupda...

push notification in iphone..

i want to implement push notification in iphone for client..i have googled it..and found these links.. http://mobiforge.com/developing/story/programming-apple-push-notification-services http://blog.boxedice.com/2009/07/10/how-to-build-an-apple-push-notification-provider-server-tutorial/ is it i have to configure the client and servers...

How To justified the Text in UITextView?

I am having a UiTextView in That I want to Justified the text can anyone help me to do that ...

Multiple files uploading to FTP using SimpleFTPSample

Hello, I am trying to upload files from my iPhone to my FTP. I have found two options: one is the S7FTPRequest and the second is SimpleFTPSample from Apple. With both of them I have the same problems. 1st problem was that uploading could not start, I think it was because of Passive mode that was disabled on my FTP. After adding line: [s...

CABasicAnimation Problem

So, I have read in the docs, that use of blocks like beginAnimation commitAnimation is discouraged from os4.0. So I have tried to get my code to work by using CABasicAnimation. I want to achieve, that an image's frame is resized from its thumbnail size, somewhere within my view, to a full width position e.g. (0, 120, 320, 240) - on...

Compare two audio sounds in iphone?

I want to record two voices and compare them whether both are identical.I thing there is a apple sample code for voice recording.I have no idea about comparing two audio files.Please help me out.I am struggling badly for 2 days.what is the right approach for this?Is there any framework apple provides for this purpose or is there any th...

CFHTTPCookieGetCreateDate is deprecated in this OS build (iOS4)

Hi, I have a simple application which accesses cookies from a webpage using a standard NSURLConnection. The existing version of the application works fine (developed for 3.0), however, I have modified the app (making it fully iOS4 compatible) and I now recieve the following warning in the log: CFHTTPCookieGetCreateDate is depr...