iphone

Connecting between iPhone and server

Hi, I am iPhone developer. I have used JSON framework to communicate between iphone and server, send and receive response. But besides JSON, I would like to know more framework that allow us to communicate between iphone and server. Do you suggest some framework? Thanks and best regards ...

iphone wireless connection, connectivity fails after turning wireless off/on again

i have a pretty basic iphone app, makes some web calls with: NSData *response = [NSURLConnection sendSynchronousRequest:request returningResponse:nil error:nil]; In testing, if I stop the app, turn off wireless, and restart the app (not kill and restart, just bring to foreground), I continue to get errors on any network url attempts. ...

iphone development explained?

hi guys, i am very new to iphone development. however i have some experience in flex(flash) and web (ajax) development experience. can u guy suggest some good resources for people like me. thanks in advance! ...

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). ...

Handling Unicode in iPhone SDK

I write a small program to get location information using MKReverseGeocoder. The return is like : Country = "\U53f0\U6e7e"; CountryCode = TW; I know this is unicode, but any function in iPhone SDK help convert this to readable string? ...

Disabling user interaction on CCSprite or CCScene in cocos2d for Iphone

Hello, I am developing a game on Iphone using cocos2d. I have a CClayer containing 20 CCSprite. I am playing a sound and I would like to disable the touch events on all the CCSprite or on the entire layer while the sound is playing. I looked at the property of CCLayer called isTouchEnabled but the behavior doesn't propagate to the chil...

IphoneOS sockets example

Hello, I am trying to get a simple sockets program working on the Ipad. To do this I am using the CFStreamCreatePairWithSocketToHost command. It works fine on the simulator. The problem is that it does not work on the iPad (I checked connectivity issues using the iPad's safari, and everything seems fine). What I want to do is have the ...

how to drag and drop a div on a website on the iPhone using jquery .

this is my code using jquery-ui , but it can't work on iphone : $("#droppable").droppable({ greedy: true, drop: function(event, ui) { //$(this).find('p').html('Dropped!'); $(this).append($(ui.helper).draggable("disable").addClass('end').find('p')) ...

iPhone, I need to DB refresh func for a few seconds, how can I show progress before a table screen from tab selection?

I'm developing an app which has a tab bar and a UITableView, sometimes I'll need to run a function to update the database, which takes a few seconds. However, this is only needed if they want to look at a certain screen (and the data need updating) which has a UITableView on it. I want some advice as to how, what, when and where I shoul...

iPhone SDK - MPMoviePlayerController inside a UIScrollView?

I trying to put some images a videos inside a UIScrollView. If I scroll to the MediPlayer I can't change the position if the UIScrollView anymore. It is like the MoviePlayer takes all the swipe/touch events. Is there any way to pass all swipes to the UIScrollView? This is my code so far: for (int i=0; i<[self.photoSet count]; i++) { ...

iPhone: Quitting aplication using [[UIApplication sharedApplication] terminateWithSuccess];

I have built a small app that gets informations from a database on a website. the first thing the app does is to fetch an rss feed and then display it. Apple guidelines tell to let the user decide if he/she wants to connect to the Internet, so I have placed an alert at the beginning showing "The app will connect to the Internet. Continu...

[iPhone] How to write XML files?

Hi. I want to write a not so complicated but large file within my app and be able to send it by mail (using MFMailComposeViewController) Since NSXMLElement and related classes are not ported to iPhone SDK what options do I have for creating XML documents? Thanks in advance. ...

Unit Testing With iPhone MapKit Framework Freezes Test Build

I have been performing unit tests on my iOS4.1 iPhone app successfully. I am currently trying to add some tests for a portion of my logic that uses APIs from the MapKit framework. As soon as I add the MapKit framework to my LogicTest target, the target will not compile -- the compile process just hangs. This occurs even if I have no tes...

Core Data: changes to section

I am quite familiar with regular usage patterns of Core Data, but recently stumbled upon a problem: Imagine a simple case where I have an Entity of person, with 2 string attributes name and company. I want to make a UITableView sorted by names and divided into sections by company name. Sound simple enough: ... personFetchController_ = [...

Objective C - How to access NSNotification inner objects?

I want to access a inner object from a notification. I need to get the key AVSystemController_AudioVolumeChangeReasonNotificationParameter. If I call [sender object] I get this output. But if I call [[sender object] userInfo] I only get "unrecognized selector sent to instance". Why is that? NSLog(@"%@", [sender object]) output: NS...

Best Way to Perform Several Sequential UIView Animations?

I have a series of 8 UIView animations that occur directly after my view is loaded. Right now, I am accomplishing this by using the animationDidStop:finished:context delegate method, and everything works as expected. The problem is that I have a new method for each animation. Most of the code in each of these methods is repeated, with on...

does phonegap or nimble kit or any other html based app platform support the set as wallpaper function

hello i am looking for an function that would allow me to save an image i have on a website as a wallpaper. i looked inside the phonegap api however nothing of saving images appeared. any help? ...

Iphone secondary xib, UIWebview local htm file will not load. I have tried numerous methods nothing has worked.

I am loading as secondary view with its own xib file. I can load it fine, but cannot get the webview in it to load any content. I have another app where this proces works, but it is in the main view. Here is the code I am using. @synthesize webView; - (void)viewDidLoad { NSString *path = [[NSBundle mainBundle] pathForResource:@"...

Create a pin (with heading and description for Google Maps) which is available for routes

I want to start the Maps application from my app. A pin with a correct heading and description (Address) should be shown on the Google map. Ideally the user should pick up this location and use it for a navigation. I tried this: 1) http://maps.google.com/maps?ll=-33.874559,151.219575 Problem: No pin is shown on the map. The user can a...

iPhone Lite version - what is allowed?

I'm scratching my head over this. I have a moderately successful app which has a free "LITE" version in addition to the full one. This is a utility app, not a game with levels, and I'm having trouble figuring out what Apple will accept for the lite version. The reason this is now an issue is that I've brought both code bases together wi...