ios4

Phonegap background service on iOS4?

Can I get a phonegap application running on iOS 4 to have a background service when it's not the active app (e.g. check a url every hour and alert the user if there have been any changes)? And if so, how? ...

Smooth annotation movement on OS 4

Hi, To move custom annotations in my MKMapView class, I remove all annotations first and add them (which are placed in new locations) again every second. It was perfectly working on iOS 3 but when I updated my OS and XCode to version 4.0, the annotations blink instead of smooth movement they used to have in previous version. Any sugges...

iPhone SDK : Create Wiggle Effect

Possible Duplicate: How do you create a wiggle animation similar to iphone deletion animation Actually this is an answer ! i made tutorial for people who want create wiggle effect with UIImageView The Wiggle Effect Code : [UIView beginAnimations:nil context:nil]; [UIView setAnimationDuration:0.14]; [UIView setAnimationRepea...

*** -[CFString rangeOfString:options:]: message sent to deallocated instance 0xbe253f0

I've created a UITableView with a search bar. When first accessing the TableView and searching everything works fine. The problem arises when the view unloads and you go back to the search option and try to search again. - (void)viewDidLoad { [super viewDidLoad]; self.listContent = [[NSMutableArray alloc] initWithCap...

Receiving errors when trying to draw with UIBezierPath

Hello, I'm trying to draw some lines inside my custom UIView. From what I can see, to save messing around with CoreGraphics, I can use UIBezierPath (i've done similar with NSBezierPath on the Mac). I have some code that tries to draw the lines but I get output errors and can't find a decent reference with some sample code to illustrate ...

Does iOS OpenAL support directional sound or only positional sound?

Hello, For the 3D iPad app I am writing I want audio to increase/decrease in volume as a single virtual listener turns towards/away-from sound sources. The listener is always stationary. The listener can only rotate. The sounds are always stationary. The sounds fill a sphere of directions around the user. The sounds are all of equal dis...

iOS installing apps without app store

Hi, is there any LEGAL way (w/o jailbreak) to install iOS application to iOS device (ipad, iphone, ipod) without publishing to application store? For example - application for closed group of users (admins/moderators etc of some web application). ...

How to use gesture recognizer in an OpenGLES application of iPhone?

While I know how to use gesture recognizer in a view-based application,but when I apply the same ideas in a OpenGLSE-based application: for example, I add a TapGestureRecognizer,and when I tap on the EAGLView,it crashes. So can anyone show me a standard usage of UITapGestureRecognizer in an OpenGLES-based application? best wishes. ...

UIKeyboardTypeDecimalPad localization

I noticed that UIKeyboardTypeDecimalPad was added in iOS 4.1, and started using it. During the course of my testing, I switched both the language and region to French in the International section of Settings. I expected the decimal key on the keypad in my app to change from a "." to a "," but it didn't. All I'm doing is this: _textFi...

Time picker problem with OS4?

I have an app which I am updating to OS4. In this I use a time picker. From this I want to get an hour and minute as an integar. This is the code I used previously for this... NSDate *selected = [timePicker date]; NSCalendar *gregorian = [[NSCalendar alloc] initWithCalendarIdentifier:NSGregorianCalendar]; unsigned unitFlags = NSYearCal...

How can you play the audio of a YouTube video in background on iOS 4?

In Safari on OS4 it's possible to stream the audio of YouTube videos in background: To try that start a video from YouTube, send the app in background, double tap the home button and switch to another app. At this point the audio will stop but it can be restated, paused, etc. in background using the remote controls associated to Safari ...

Dynamically creating a UIPageControl on iPhone

I'm new with objective-c (and obviously iphone development) and I have to dynamically create UI layout of my aplication, to be more precise I have to create N (3 for example) different views which are connected with UIPageControl (link). After that, I have to add various dynamically created controls on created views. Any suggestions? som...

What to do if I need to support ios4 muititask when build an app?

I am developing an app, it gets a list of locations from internet, and will trigger map app when click one item of the table list. I found when I try to go back from map app (double tap or just one tap of the home key), my app just restart to the first screen. I know ios4 have multitask feature, my app is built with SDK3 and test in m...

App Store Submission - Hi-Res Screenshots in iTunes Connect

I've searched through the iTunes Connect Developer Guide 6.1 - but can't seem to find anything about this. I've just completed entering the meta-data into iTunes Connect for a new app. This app runs on iPod and iPhone and has graphics optimized for the Retina display, so it has @2x images for all graphics. I prepared 5 screenshots to ...

Map UIWebView tap to HTML element

How would I go about detecting which HTML element was tapped inside a UIWebView? It seems a bit hacky, but right now the only way I can think of would be to evaluate JavaScript and use JS to traverse the DOM. Any help with this direction would be appreciated, too. ...

Play Videos in MPMoviePlayerController from a URL ??

i am trying to play a video from a Url with help of MPMovieplayer which loads it in the Quicktime player while i want the video to play in my application only(no background mode)?? how can i achieve that?? will playing the video in a UIWebview instead of MPMoviePlayer work?? Also when QuickTime Player loads only Audio plays and no video ...

Event Notification in iOS4

Hi All, I want run my app after call ending or sms sending. how i can do in iOS4 ? I know if i run my app at background and then at time of call ending i can push my app in active state. But if their is any system notification event then i can run my app after catching this notification. Is their any way in iPhone os which i use for...

iphone 3G multitasking ?

hello, my app works fine in background for iphone 3gs and iphone 4 , if i cracked my iphone 3g in order to support multitasking , whether my app works fine in background mode or not. Thanks Kumar ...

MPMoviePlayerViewController playing only audio no video on simulator??

i am using the following code to play a video from a url but when the video loads only audio is played and no video is shown on simulator..right now i cant test it on iphone 4.0 device...is there a problem with the simulator or is MPMoviePlayerViewController is not the right way?? NSString *videoFilepath = @"http://www.migital.com/Hema...

iPhone Bluetooth Network Tutorials that don't use PeerPicker?

I'm trying to set up a Bluetooth Server/Client network on the iPhone, and it's throwing up some really weird problems. Stuff like networks being advertised that can't possibly be there any more. Can anyone point me to a good tutorial that tells you how to set up a Client/Server network using Bluetooth? Please, nothing pointing to PeerPic...