iphone

Iphone SDK: How to Countdown from current time to a specific day in the future

I have was wondering how it would be possible to show the specific time remaining for a date in the future. This is what i have so far. I can get the current time, and display that, and i used the minutes to midnight tutorial to figure out how to find out what time it will be midnight. But i am suck as to finding out how i would pick a ...

NSAllocateCollectable it is possible with iPhone application?

Hi! I'm developing an iphone application and when I compile it I receive some warnings. The application works, but probably it is interesting to delete all the warnings no? This is one of them, that I can't undersand, basically because I'm a "rookie" with iPhone SDK and this class comes from another code (free code) Anyone can help me...

UITableView(Controller) - Hide empty rows

I am trying to create a UITableView that only displays the number of rows that have data content in them. This is a menu system, and suppose there are 5 choices in the particular menu, I only want to show 5 rows on the screen, with a background image in place of where the empty rows would be (A similar example I guess would be the World ...

iPhone: UIButton don't use default pressed highlight

Currently when you use a UIButton and press down on it, it gives the button a dark overlay as an indicator that the button was pressed. I don't want this as I am implementing my own pressed state. How can I remove this default? ...

IPhone App died under iOS 4.1. No code changes.

I installed iOS 4.1 just released today. I downloaded my app to the Phone from the AppStore and ran it and it cant get GPS Location. I download the new XCode and 4.1 SDK and recompiled under 4.1 and app works fine on 4.1 IPhone. No code has been changed. Why doesnt an app compiled under 4.0 work under 4.1. BASE SDK was 4.0 IOS DE...

how many days can a app live in background

hi, I am actually doing some daily checks of the app assuming the app will be closed and opened daily. It works fine for 3.1 devices. My question is how many days can a app live in background on iPhone 4.0 OS. If it lives for a long time what are the best ways to make daily schedules to contact my backend server ? ...

is it possible to migrate Data from iPhone to any Desktop SQL Data Base?

Hi I'm developing an app that stores data in the iPhone, but I need to know if it's possible to export the data (as an entities, tables, .txt or xls) to a desktop because I need the data to be readable on my Computer OR do I need to create a web site to do it??? by the way.. I'm still not sure what method is more effective for this kind ...

how to add a string to a class object in iphone

i have a search view.in that i am searching for the topics starting with some character.when i press 1 character it will show the results in table view.the search results in textDidChange method are storing in string type. how can i convert this string type into class "Topic" type. "Topic" is a class.i have created aTopic object for "Top...

Is it possible to upload files directly to Amazon S3 using titanium appcelerator?

Im doing some research to build an iOS and Android app using titanium appcelerator. The only requirement I have not being able to confirm is the possibility to upload a photo directly to Amazon S3 in a way that is compatible with iOS and Android devices. ...

AudioServicesAddSystemSoundCompletion: how to use the void* parameter?

Hello, guys. I want to play two sounds, but the last one only after the first ends. I'm using AudioServicesAddSystemSoundCompletion like that: NSArray *data = [NSArray arrayWithObjects:target, callback, nil]; NSString *soundPath = [bundle pathForResource:sound ofType:type]; SystemSoundID soundID; AudioServicesCreateSys...

Render Anti-Aliased Lines with Textures => searching for very simple example

There is this site... ... where they explain how to draw an antialiased line. Exactly what I want! but... I don't understand how to achieve that for a simple line. I have found the online version of the book (the article is kind of derived from the book), i have downloaded the sample code (showing a stick figure doing fancy moves)...

memory management with outlets and properties in view controllers

Hey guys, sorry for beating the memory management (dead)horse again. I know this question has been asked several times on SO, but I feel all the threads out there is still lacking two pieces of information. Let me put forth what I DO know to save everyone some time. 1) When you create an IBOutlet, your view controller automatically reta...

Typical time and horizontalAccuracy of iPhone CLLocation in practice

I'm wondering if anybody has done thorough empirical testing of the iPhone's ability to find its location. Obviously the performance and accuracy will depend on the type of area one is in (urban vs suburban vs remote). Just testing from the Simulator, I get a horizontalAccuracy of < 100 meters (98 meters) in a few seconds. I believe it ...

objective C (iphone) question about releasing

If I create a view, and add it as a subview and also add it to an array, do I have to release it twice? UIView* cat = [[UIView alloc] initWithFrame:someFrame]; [self.view addSubview:cat]; [self.animals addObject:cat]; [cat release]; [cat release]; It just seems weird to me to have 2 release statements, and I haven'...

Developing for iOS4 with XCode 3.2

Can you develop for the latest iOS4, using XCode 3.2? Do I need to get the latst SDK? I know there is a new XCode coming out but it isnt released yet right? ...

Detecting touches on an HTML5 <video> in a UIWebView on the iPhone

I would like to be able to detect touch/click events on the tag in the UIWebView. But it doesn't look like it responds to that event. Any ideas? videoElement.addEventListener('touchstart', myFunc, false); Could also be the 'click' event. ...

iPhone - inserting space between custom table cells in UITableView

Hi all, I have a UITableView with custom cells in it. I'd like to add a little red bar between the cells to have the cells be more distinct. Is there an easy way to do this? Thanks! ...

UIButton stops working ?

Hello, I'm having a weird issue, I know it's a bit futile if I don't paste the code here, but I think it would be overkill. What would cause a UIButton to stop working, ie : its IBAction doesn't respond anymore the highlighted state doesn't respond anymore This button belongs to a Scrollview that I'm moving up after this particular...

How to properly release assigned object with no handle.

Instruments is pointing out that this is a memory leak, however I'm unsure how to release it properly, or when it should be released. Is there a better convention for assigning properties with new objects that are only needed inside a loop? The specific line is the "expense.addedDate = [NSDate new];". - (void) addObjects:(NSString *)it...

How to access photo EXIF in pictures taken from camera in iOS 4.0+?

How do I access the EXIF info in a picture from the camera taken using the new 4.0/4.1 APIs? I use captureStillImageAsynchronouslyFromConnection to take the picture and: [AVCaptureStillImageOutput jpegStillImageNSDataRepresentation:imageDataSampleBuffer]; to get the jpg data but how do I extract the EXIF? The doco makes references to...