iphone

Easy way to archive interlinked objects

In a game I have a bunch of objects and collections of objects, some of them include references to others. Is there a straightforward way to archive them - to save a game state - while maintaining those references? If I understood well, NSArchiver can do that, but it wasn't available on SDK 2, is it on SDK 3? (I have sort of asked this ...

UIButton on iPhone -- making the button shake or wiggle

I have been working on this for a few days with no luck... I am using Interface Builder to build the views. I have a UIButton with an image as the background. When I shake the iPhone, I want the button to wiggle. Any ideas? ...

How to retrieve a response from server for the request sent

Hi all.. I am developing an application that connects to a remote web server and exchanges data with the web server frequently. First screen of my application provides login screen that authenticates user. I am able to authenticate user on the web server by sending a request to the server but unable to get response from the server to ...

Google Map Route Draw on IPhone.

Hell All I am developing the application that has two versions. One is for the Web, and one is for the iPhone. In the web app, I am able to draw a route on the road (drawing the route automatically that follows roads/highways) and off road (draw direct line between two specific point). On the iPhone is there an api that can be used t...

Couldn't install Ad-Hoc in iPhone 3.0 OS?

Hi Guys, I've created an Ad-Hoc of my iphone app, but i couldnt install it on my iPhone (upgraded to iPhone OS 3.0). And also i created new provisioning file and plist file but it still shows error: The application was not installed on th iPhone "Unknown" because an unknown error occured (0xE8008017) Please send me a solution....

How can i make a website as a iphone native application?

Hey all.. I'm planning to convert my website into an iphone native application. I'm stuck up at the point how to achieve this. As i am new to iphone development, I'm not getting any idea on how to develop this. Initially, i have developed the first screen i.e., LOGIN screen of my application. My server is built in JAVA. I'm able to se...

UITableview Section Error - objc_msgSend

Hey guys i've got an problem and don't know how to handle it. if i make a section the error occurs. Heres my code it would be so nice if somewone can help me :) I've already tried to set the section index to 0 and 1 but that didn't help either. Thanks in advance - (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtInd...

UIButton move animated problem

how to make a UIButton when moving (animated) without shadow? i tried the code but cannot make it can someone modifify or point out the problem -(IBAction)move{ point=CGPointMake(0,1); for(int i=0;i<50;i++){ NSLog(@"fdfafa"); CATransition *animation = [CATransition animation]; [animation setType:@"push"]; [animation setSubtype:@...

iPhone : disabling other elements on TextField focus

Hello. Let's start with an example: when you enter the Contact program on your iPhone, then type on the TextField "Search", the keyboard is displaying itself and the tableView under is going dark (and deactivated). Then if I touch this dark deactivated list, the keyboard hides itself and the list becomes normal. I would like to reproduc...

Interface Builder System Media Library Empty in iPhone 3.0 SDK

Hi, my System library in Interface Builder contains no image or sound resources etc. I am currently using the iPhone 3.0 SDK. If you have any idea what I can do to get the default media for Interface Builder it would be appreciated. I am using the Snow Leopard Developer Preview incase this makes a difference. ...

NSAutoreleasePool thread and main thread sharing an autoreleased object

performSelectorOnMainThread with waitUntilDone:NO and withObject: an autoreleased object from the thread.So just after the thread terminates itself with a [NSAutoreleasePool release] What happens to my autorelease object from this thread that has been passed to the main thread ?? ...

Types of Peer-to-peer connection

I am developing an application and trying to use an peer-to-peer communication. i have idea about bluetooth and WIFI. Is their any other options for peer-to-peer communication. Is it possible using Internet option. Please help me with a source code or any documentation?.. ...

Exception/Error handling in Objective-C (iPhone app)

I actually have two questions regarding exception/error handling in the iPhone app that I am making: The app uses Internet, but when there's no connection, the app just dies (during launch). How can I handle this to print some infomsg to the user, instead of just getting thrown back to the springboard? Can someone show me an example of...

How to call actions between classes?!

Hi guys, yeah it's me again :) I've got a little problem. I've got a custom cell with a TextField. I want the keyboard to hide when i tap "done" so normally i do this jus with [sender resignFirstResponder]. In this case that doesn't work because the custom cell is a class itself and has its own .h and .m files. How is it possible to...

glFrustumf displays only clear color, glOrthof displays as expected (OpenGL ES)

I'm new to OpenGL, so I'm sure this is a dummy mistake, but I've read every post, and reviewed sample code, and I can't find a difference, explaining why glFrustum wont display as I'd like it to. I initialize OpenGL like: - (void) initOpenGL{ glEnable(GL_DEPTH_TEST); glMatrixMode(GL_PROJECTION); //glLoadIdentity(); //gl...

Multiple Views in One Nib (addSubview)

I'm trying to keep my code clean and keep the number of files down. I am using a UITableViewController and I would like to load another view on top of it. I thought this would be pretty simple: (1) create an IBOutlet in my .h file @interface MyViewController : UITableViewController { ... UIView *downloadView; ... } ... ...

where did all the templates in xcode go?

After the recent update in xcode I seem to have lost all the template for cocoa touch and iphone templates. Under Cocoa Touch Classes in the new file dialog, I only have 3 choices: Objective-C class Objective-C test case class and UIViewController subclass where did the others go? UITableView, UInavigation etc.? I am running xcode 3....

Can't resize UIView in IB

Probably something simple, but I can't figure why I cannot resize a UIView in a xib in Interface Builder. I created a new view XIB in xcode and in the size inspector, the width and height are disabled and grayed out to 320 by 460. This is strange since I can change the size for the other two views (associated with the other two tab bar...

cocos2d particle performance

I am using particles for an iphone application using cocos2d. The framerate drops as the particles are shown. What is the best way to clean these up as not to affect performance? ...

How to disable UITextField auto-center? (IPhone SDK 3.0)

I have a UITextField inside a ScrollView that is supposed to be animated into a visible area above the popping keyboard when entering the textfield. So I used the delegates textFieldShouldBeginEditing-method to call the scrollviews setContentOffset. now in the 2.2.1 Simulator this worked just fine, but in the 3.0 Simulator the scrollvi...