iphone-sdk-4.0

iPhone background network connection by timer

I need to write an application, that every 10 minutes it should be awaken from suspended mode, get user location via gps and send this information to the server by network. Depending on the response it should return to the suspended mode or show local notification to the user. Is there a way to do this on iOS 4? I've tried different a...

How can I create a UITextView-based controller for showing html content

Hi everyone, I am trying to develop an email-sending app which sends messages via custom API. The problem is that UITextView does not allow to display html content, and in order to forward/reply messages properly you sometimes need to edit an html-content that came from a previous message. However in a standard Mail.app on iPhone the ...

in Iphone OS4.0 not getting the touch notificatoin for MPMOviePlayerViewController i m using the tabbar application.

hi i am working on a Tab Bar Application. and one of the view of tab bar is open a video by using MPMoivePlayerViewController and while video is playing that time i need to show a overlay which having twitter, facebook button . when we tap on screen that time this overlay will come and after 3 seconds this overlay is go off . so for imp...

How to covert an image and a video to multipart enctype format and post it to a server in my iphone app

I am developing an application in which I am recording a video and taking pics . . now I want to upload these pics to server . . these images or videos should be of multipart enctype format before making a post request. I have used this to get a base64Encoding format but how to convert to ultipart enctype format. NSData *recVideo ...

UILocalNotification repeat sound

Hi, I have used the code from apples example from this page: Link, but I can't seem to get the sound to repeat. I have checked other applications, such as skype (for VOIP) and Alarm Clock Pro (audio?) but I cannot get the sound file to be repeated. This is my code: - (void)applicationDidEnterBackground:(UIApplication *)application { ...

Push Notification with a timer - iPhone

I would like to send a push notification to the user but I want it to appear only for few seconds and not to stay on the screen. Can I set a timer to close the received notification? ...

ViewController displaced vertically by 20px after modal is dismissed: iOS4 Only. Example code included.

Hello - I hope someone can help... This issue has been discussed here and I have tried the solutions suggested but to no avail. My problem is best illustrated using the example project which can be downloaded from this URL: http://www.hitsalive.com/tmp/VCTest.zip In the example project I have a main viewcontroller with two buttons use...

Camera Overview in iPhone for Augmented Reality App

Hey Guys I have the following simple Code : WhereAmIViewController.h #import <UIKit/UIKit.h> #import <CoreLocation/CoreLocation.h> @interface WhereAmIViewController : UIViewController <CLLocationManagerDelegate> { CLLocationManager *locationManager; CLLocation *startingPoint; IBOutlet UILabel *lati...

Dismissing current UIActionSheet

Is there a way to dismiss the current UIActionSheet when you don't have access to the variable that holds it? Apparently it makes its own window and makes it the key window, but [[[UIApplication sharedApplication] keyWindow]resignKeyWindow] doesn't seem to be working. ...

Use custom background with UINavigationController default UIToolbar

Hi I want to use my self background for my UIToolbar. To do that with the UINavigationBar I've just used this category with the override of the drawRect method: @implementation UIToolbar (CustomImage) - (void)drawRect:(CGRect)rect { UIImage *image = [UIImage imageNamed: @"nm010400.png"]; [image drawInRect:C...

Mapkit with multiple annotations

Hi All, I have a map displaying multiple annotations. I'd like to mimic the behavior of the Places tab on the Photos built-in app (iOS 4), where the annotations are automatically joined together or splited apart as the user changes the zoom level. How do I do that? Thanks! ...

Iphone 3Gs And Iphone 3

Hi All, I want my app to be installed on only iPhone 3Gs and iPhone 4, running iOS 4.0 but not on iPhone 3. I did that by adding a new field in UIRequiredDeviceCapabilities in info.plist file called multitasking but when I submitted the file I got an email from apple saying that I used an invalid key in info.plist for the field UIRequir...

iphone app reading sms

Hi, i need to develop application , where it needs to be read the incoming sms received by the user and then need to do some manipulation with that text and display it in the application. Can some one suggest me , whether it is possible to read the sms received with in our application development. Thanks in Advance ...

xcode 3.2.1 and ios sdk 4.0.2 download problem

Hi all, I have problem in downloading xcode 3.2.1 and ios sdk 4.0.2. The downloading completes successfully but after that verifacation starts automatically and verification failed. When I try show in finder it does not appear there.Please suggest me what should be the problem. Thanx. ...

iphone 4.0 OS. Is it possible to read the file system beyond the application sandbox?

Is it possible to read the file system beyond the application sandbox? Not the area for other applications, but folders like photos, video, music etc. Would the "Assets Library Framework" help in this case? Can I use a file:/// NSURL etc.? T...

Iphone 4.0 = how to read SMS from IPhone Inbox Programatically

After a review of the iPhone SDK documentation, I can send SMS Using MFMessageComposer in my application but i have not yet found a way for an application to be written such that it can programmatically process the content of an incoming SMS message within the iPhone platform. The idea would be for such an application to be running in t...

Keep timers running in background Apps without location services

Is there a way to keep timers running when an App enters background mode without location services running? If I have a timer running in the App with location services on and enter the background then it keeps running. However calling stopUpdatingLocation also stops the timer. I would like the timer to be able to call startUpdatingL...

Why can't I connect the File's Owner to new Views in iOS SDK?

I am working on an iPhone SDK project using Xcode 4 Preview. I am in the IFB view and have deleted the default view icon and brought in two new views which I have named Portrait and Landscape. I should be able to control drag from the File's Owner to the two views to connect them, but the usual HUD does not appear and I cannot connect th...

Set front-facing camera in iPhone SDK

I would like to have my app open the camera (presently UIImagePickerController ) front-facing if available. (Iphone SDK). How can I do that? ...

Minimum eCPM on iAds

My app has been on the app store starting September 1. Every day, I monitor the eCPM which has been around $10-$15. Today, however, the eCPM shows to be $1.5. I am surprised that this was even possible with iAd. Considering that apple gets $10 per 1000 impressions, I assume the minimum number a developer makes is $6 per 1000 impression...