iphone

Can I develop an iPhone app using java?

Hi Is it possible to develop applications for the iPhone using Java? And if so, does it allow the use of custom jar files? Thanks. ...

Transitioning between subviews in a navigationController?

Hello, In my app I have a drill-down type interface as follows: My root view, which has a list of items and an "Add" button. Selecting an item pushes the "Detail" view on the navigationController. Selecting the "Add" button pushes an "Add" view. How would I transition between the Add view to the Detail view? I'm thinking of doing an u...

Adding Icon on desktop of iPhone

Hi, I want to place an icon on the iPhone screen form my application, like placing an icon and if i will touch that icon it will do the desired operation, like opening a sound file or an image. So i want to ask is it possible to place an icon on screen through an application and do some events on it. Regards, Vishal ...

[iPhone] tabBar viewControllers in IB: send custom init?

Hello, My tabBarController-based app has several tabs. Each has a custom viewController class, the only difference being the way the instance is initialized. Is there a way to make interface builder send the different tabs custom init parameters? Currently I'm doing the initialisation in viewWillAppear, but for a bunch of reasons it wo...

How do I chain scale animations with an iPhone UIImageView?

I'm trying to scale an image down, change the image, then scale it back up. CABasicAnimation* shrink = [CABasicAnimation animationWithKeyPath:@"transform.scale"]; shrink.toValue = [NSNumber numberWithDouble:0]; shrink.duration = 1; shrink.delegate = self; [myImageView.layer addAnimation:shrink forKey:@"shrink"]; makes the shri...

SMTP in iPhone

how can i connect with SMTP in an iPhone native application? ...

Compiling in Xcode fails because linked lib isn't found

Hello, I need the openssl lib for some C code in my iPhone App. So I've put the lib into my project. But when I compile it, Xcode throws me some errors: error: openssl/ssl.h: No such file or directory That's my code for including: #include <openssl/ssl.h> Target settings in Xcode: Which step am I missing to link it correct...

iPhone bookmark link add to home screen?

Is it possible to add a link that bookmarks to the home screen? ...

Getting cursor position in a UITextView on the iPhone?

Hi all We have a UITextView in our iPhone app which is editable. We need to insert some text at the cursor location when the users presses some toolbar buttons but can't seem to find a documented (or undocumented) method of finding the current location of the cursor. Does anybody have any ideas or has anybody else achieved anything si...

Searching text from UITextView in iPhone

I'm developing an application for the iPhone where some text is shown in a UITextView. I want to search for a specific word in the text and then show the text with that specific word colored. If anyone can help me solve this, I'll be very glad. ...

viewDidAppear: called twice on modal view controller presented during startup

Resolution: While trying to recreate this bug in a fresh project to submit to Apple, I discovered that it is specific to iPhone OS 2.1, and compiling for 2.2 fixes the problem. Stephen, thanks for your help; I'll be accepting your answer since it would have worked if the bug still existed or I wasn't willing to compile for 2.2. I hav...

IPhone localization: Is it possible to translate nib files easily without having to copy the nib for each language?

I'm trying to find a manageable way to translate every visible string in an iPhone application. The official apple documentation says to use .strings files for programmatic strings, while using the built in "add localized file" option in xcode to localize nib files. The problem i see with this is that if the UI needs to change after ...

iPhone Gameloop render update from a separate thread

Hi, I'm new to iPhone development. I have a game loop setup as follows. (void)CreateGameTick:(NSTimeInterval) in_time { [NSThread detachNewThreadSelector:@selector(GameTick) toTarget:self withObject:nil]; } My basic game tick/render looks like this (void)GameTick { NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init]; C...

Understanding UINavigationController on the iPhone

Is my assumption that every controller which is presented with presentModalViewController:animated: need their own UINavigationController stack for their own hierarchy of drill down controllers? Meaning, say I have a top level controller It has its own navigation stack, and an action button which presents another controller via a modal. ...

iPhone how to create a full screen app?

Hi, I've been trying to create a full screen view. I plan on using core graphics for rendering. I am new to iPhone development so please forgive this basic question. Here's my setup code; - (void)loadView { CGRect rect = [[UIScreen mainScreen] bounds]; GameView *main_view; main_view = [[GameView alloc] initWithFrame:rect ...

Lock orientation UIWebView on iPhone

Is there a way to lock the orientation of a UIWebView? With Obj-C, JS, or Html? I don't want to have a button or anything I just want it to be locked to portrait as soon as the app opens up. ...

Receiver 'ClassName' is a forward class and corresponding @interface may not exist

Im currently trying to find a UIPickerTable within the UIPickerView.subviews ... so i loop through and do isKindOfClass:[UIPickerTable class] .... which works.. but because the header of UIPickerTable isn't exposed i get a warning that "receiver 'UIPickerTable' is a forward class and corresponding @interface may not exist' In order ...

AVAudioPlayer - playing multiple audio files, in sequence

I want to play multiple MP3 files, in sequence (one after the other) , using AVAudioPlayer. I tried it, and it stops after playing the first MP3. However, if I go into debugger, it works fine.. any ideas? I read somewhere AVAudioPlayer plays audio in the background.. how do I prevent it from doing this? Vas ...

How can I catch touch events to a UITableView section header?

I've implemented a custom view for my UITableView section headers (via viewForHeaderInSection). When in plain view mode, the default behavior seems to be that the cells float underneath the section headers and touch events fall through to the cells underneath. How can I have the custom section header view respond first to any touch eve...

Freezes application in button action

I doing a game application using cocos2d.In this application two game are include together. When playing game i include a action for switching the game. when i use this button two or three times change the game but after that the game is freezes & not work any more until the game is close the game. If anyone have a solution than give me ...