iphone

iTunes Documents Directory in my app

Hi, how can I setup my app to accept documents via iTunes, like the Air Sharing or VLC app? I mean, I want to allow users to get content from the app using iTunes. Anyone know how? Thanks ...

Picker does not recognize the last row

Hello! This seems like pretty standard code straight from the doc, so I'm not sure what I am doing wrong... My 3-component picker doesn't look right when it loads, with the selection indicator being placed too low across the picker (so the grey bar is correctly placed, but the clear raised-looking overlay is too low). Then, when I sel...

Programmatically Altering Images

I'd like to alter images programmatically. Specifically for the iPhone, but, general answers could help. For example, how could I, programmatically, add filters effects, such as those available in Photoshop. Clearly it is possible as exemplified by apps such as Fat Booth. What is the starting point for this? Load an image as NSData and ...

AdressBook Crash, only with some contacts!

My app crashes, it is a problem that arises from the AddressBook API, it only happens with some contacts. Here is the log: Exception Type: EXC_BREAKPOINT (SIGTRAP) Exception Codes: 0x00000102, 0x316ebd38 Crashed Thread: 0 Thread 0 Crashed: 0 CoreFoundation 0x00001cfe CFRetain + 90 1 AddressBook ...

Position both the safari "touches" from a gesture event?

I want to get the position (relative or otherwise) of the two fingers/touches inside a gesture event (gesturestart, gesturechange, gestureend) on mobile Safari (iOS: iPad/iPhone). I know that the gesture* events don't actually provide this in the event args but i thought there might be a 'trick' to getting this info. It would be great to...

Writing an array of NSData to file

I am trying to save an array of images to the documents folder. I managed to save an image as NSData and retrieve it using the method below, but saving an array seems to be beyond me. I've looked at several other questions that relate and it seems I'm doing everything right. Adding the image as NSData and saving the image: [imgsData a...

iPhone - Save URL without setURL:forKey: and NSURL

Is there anyway to save a URL with NSUserDefaults without setURL:forKey: that is only available to iOS 4.0 and later? I am loading HTML files locally with fileURLWithPath, and it starts at an intro page and the user can click through to whatever. For now, everytime a user starts over it loads back default to intro.htm. I would like to b...

Return only search results that contain inner HTML and not strings also in HTML tags on iOS

I have a native iOS app. It has a UIWebView to read eBooks. I have a search feature in the app that searches for all pages in the eBook that contain the search term. The problem is that the search results also include pages that have the search term within HTML tags. For instance, if someone searches for "Blue" and a document has a c...

Can I call libxml parser from multiple asynchronous network calls?

I have a piece of code that uses NSURLConnection to fetch a network resource asynchronously and parse some XML as it streams in. The XML parsing is handled by libxml2 which is available as a framework in the iOS SDK. This works perfectly when I invoke it once, parse the XML and release the resources by calling xmlFreeParserCtxt(ctxt). ...

Waiting Period Before iPhone APNs Starts Pushing ?

I am running Push Notification on two test apps. The first test app I got working over a 2 day period. The 2nd test app I tried to implement Push Notification tonight and have been banging my head over it. I am able to swap the certificates and the 1st app receives notifications, but when I use the .pem for the 2nd app, nothing happens. ...

how to load iPhone application from web application

I have web application for mobile (developed in .net), I want to use iPhone maps application from web application( i.e. from web browser on button click)..how to do it? I want to do same in android to. ...

Data Exchange between same iPhone App on separate devices

Hi all I am developing an app on iphone that lets user take photos, add comments & GPS location to it and send it as an email to another user. If the recipient has installed the same app & when she clicks on the attachment the same app will launch & parse these details & show them to the recipient. (I intend to use UIDocumentInteractio...

Other development platforms for iPhone

What do you guys think about other iPhone development platforms like appmobi, Rhomobile, Titanium, PhoneGap and others. I already have objective c/ iphone experience & some experience on Android. How will these platforms effect my performance in long run if I start using one of them. How customizable are they..? And which one of them d...

How to calculate speed of our car using iphone

for my application i want to calculate my car/bike speed using iphone who can i do that , and it should run continuously run in background .... please help me ...

How can I force a UILabel to cover the background of its parent UIView?

I'm having a problem I most definitely don't understand. I have the following subclass of UIView: @implementation TimelineSystemEventView - (id)initWithFrame:(CGRect)frame { if ((self = [super initWithFrame:frame])) { CGRect newFr = CGRectMake(-30, 0, 60, 25); label = [[UILabel alloc] initWithFrame:newFr]; [self addS...

How do you set a button as highlighted on iPhone

How do you set an iPhone UIButton to the selected state, i.e. where it is blue highlighted? ...

How to capture the user click "Tabbar" item action?

I have a application with many views. For example, I have "A", "B", "C".... Both "A", "B" have a button to switch to "C". Also, I can click the tabbar "C" item to switch to "C". The question is, when I tab the tabbar to switch "C" is different from "B" and "A". For example, if I click the A view's button, it will switch to "C", and the...

Memory warning level 1 due to UIImage.

Hello All, I am working on one component where I need to scale and rotate image. following is flow of the component Select the image from photo library -> show that image in UIImageView -> do the scaling -> save this image in document. This works fine with image having low resolution. but once I select the image with high resolution ...

Play next song automatically in Iphone

Hi, I got the background Process successfully. But the problem was when AVAudio player get finished it won't play automatically next song. But In Simulator it will work fine. In device only the Problem. Any one worked Out??? ...

send sms programaticaly

in my application i wan to send predefine smstext to one single number on certain event , it is possible to send sms like that! if yes please help me with sample code ...