iphone-sdk-4.0

Phonegap on iPhone 4 device

Hi, I have a PhoneGap app that works perfectly on the iPhone 3.2 simulator and also iPhone 3 and 3GS devices. I have just downloaded and installed the latest iOS SDK, changed the settings in Project>Edit Project Settings to allow the application to work, and run it successfully within the iPhone 4 simulator and even the iPad simulator....

iPhone / iOS popViewControllerAnimated Does not refresh screen

Greetings, I have a strange issue when calling .navigationController popViewControllerAnimated:YES from an NSOperation where the screen does not properly update and leaves the popped view visible but apparently deallocated. Details: I have a list view that accesses a local sqlite database. When tapping on a record, it displays that r...

Make Keyboard disappear by force on ios 4.0

When TextVIew was activated I used to make keyboard invisible on ios 3.1.3 version by using the source i wrote.(please refer to above or below my email.) but I can not make keyboard invisible any more with the source on ios 4.0. Could you tell me how to make key board disappear on the ios 4.0 version ? [[NSNotificationCenter defaultCe...

show uiactivityview while an other operation is loading

hi all i googled for hours now but i can't find a code example, which describes how to show an uiactivityview while an operation/method is loading. in my case i want to show it while i load a large image to an uiimageview. have you got an idea how to realize that? thanks in advance. sean ...

Firing a timer in a background app and showing UILocalNotifications

I've written an iPhone app to display available bandwidth for my satellite modem, but I'm interested in allowing the timer to continue to fire in the background (though with much greater time between ticks) and display UILocalNotifications during events such as reaching a 20% remaining limit. I think the answer to this is "You can't", bu...

Set desktop picture

Is it possible to set background(desktop)picture from code? if yes how? ...

Getting exception while setting the locale for running applicaiton in multi task iPhone?

Hi Guys, I have a web view screen in my application, Where I am getting the data in different languages from server. So when I am setting the locale at back end I mean, the application is not closed. While I am setting the locale the application is closed and getting exception. I have done like this, I opened my application went to web...

Problem with app on device

When I run my app with simulator every thing is ok.also when i run it on device (ipod touch 3G) for the first time,i have no problem but if i close my app and run it again,it hangs(no button working & just i can uninstall it) and if i try to minimize it ios seems out of action(every thing is being black) how can i solve this problem ? ...

How to call a method when 'No Cellular Network Available'.

Hi all, I am implementing an API based application. As per the requirements I need to show an alert when "No Cellular Network Available". I go through the documentations didn't find any solution. Can guys please help me on this it is very urgent. Thank you, Monish. ...

Iphone app to make calls and send audio files. How do they do it?

I came across this great app Text2Speech and I am curious how it is possible to do something similar. It looks like they have something on their servers that actually makes the call, in other words, the call is not originated in the Iphone running the app, but in the app server side. And somehow they manage to show my phone number in the...

Had a problem with the special charactered url when opening with in the application

Hi all, I am trying to open an url with in the application. It has some special characters like, ./_ =| | #. It is not opened when I try to open it with in the application like [[UIApplication sharedApplication] openURL:[NSURL URLWithString:phoneUrl]]; but it is not responding. When I Pasted the url in safari of simulator it is working ...

Getting nil from standardUserDefaults,.

I have created a Settings.bundle for my application, and I try to read the settings by the following code: NSUserDefaults *defaults = [NSUserDefaults standardUserDefaults]; if(!defaults) { NSLog("can not get default bundle"); } NSString *usr = [NSString stringWithFormat:@"%@",[defaults stringForKey:@"username"]]; NSLog(usr); The o...

Three20 navigation by openURLAction; self.navigationController is nil in pushed VC???

The navigation commences with [[TTNavigator navigator] openURLAction:theUrl]; from one UIviewController controller and another UIViewController is the target of that URL. The map is set with set with the following code and there is no doubt navigation goes to the right place: TTURLMap* map = navigator.URLMap; [map from:@"tt://goToMyVie...

delegate problem

A, B,C is class. A define delegate. B define delegate. C implements delegate. how do C implements delegate of A by B ? it means that C want implements A's delegate, but B include A. so it's wrong! I want to implements A's delegate by B? what to do in B. Transfer A'delegate to C ?? please help me! thanks! ...

how to play a video in epub using iphone sdk?

Hi All, I have to play a embedded video in epub using iphone sdk. I have an epub with embedded video but i m not able to play it. Thanks in advance Pankaj Chauhan ...

Navigation Bar is not positioned corrected.

I have a Navigation Controller in my main view. And I use the following code to add the navigation view when needed. [self.view addSubview:navController.view]; However, the the navigation bar is not positioned correctly. I have posted a pic below. Anyone knows what is the potential problem? ...

IBoutlet MapKit crashing Tab Bar Controller Application

Hello, I've been trying to make a tab bar application that needs a tab with a Map. Pretty simple. Well, when I add an IBOutlet to it, the application crashes indicating an: * Terminating app due to uncaught exception 'NSUnknownKeyException', reason: '[ setValue:forUndefinedKey:]: this class is not key value coding-compliant for the key...

Easy way of exporting @2x images for retina display?

I am creating a lot of webviews that must be compatible with both the iPhone 4 retina display and pre-iPhone 4 devices. It's a pain in the ass to export multiple files for each image. Is there a script or utility to automate this process? ...

[iOS SDK 4.1] Problem with run app on device

Hi, I'm a beginner programmer in iPhone SDK. I wrote app and I have a problem. App works good in simulator, but doesn't work on device. I can't write to files, but i can read. I'm using wirteToFile. Do you have any ideas what is wrong? ...

Best way for an Iphone app to talk to a Java server through a full-duplex connection (chat or game)

My client is in an Iphone app (game with chat) and it will be talking to a Java server. What is the best way (protocol / interface) for my Iphone app to talk to my server? I know you can use HTTP, but it is a request / response protocol. I could always request something and wait for asynchronous notifications from server. Then request ag...