iphone

iPhone app not working properly in iPad

Anybody have problem with their existing app not working in the iPad simulator? I have a iPhone app which is a navigation-based app with tab bar and multiple tableviews -- and none of the table is showing up. Basically, what is expected -- a long rows of table. In iPad, nothing. Any ideas? ...

how to get the popup keyboard to move along with the orientation of the iphone device.

hi im new i have a UITextView field on a view and when i orientate the iphone to the right side the keyboard doestn move it stays horizontal. how do i make it move along? ...

Delay in playing sounds using AVAudioPlayer

-(IBAction)playSound{ AVAudioPlayer *myExampleSound; NSString *myExamplePath = [[NSBundle mainBundle] pathForResource:@"myaudiofile" ofType:@"caf"]; myExampleSound =[[AVAudioPlayer alloc] initWithContentsOfURL:[NSURL fileURLWithPath:myExamplePath] error:NULL]; myExampleSound.delegate = self; [myExampleSound play]; } I want to play...

How to record video in iphone

HI, I need to record video using iPhone. To do that i used UIImagePickerController. I have an iPhone 3G, with me. when i run my code to check if source type available it says device not supported. My OS is 3.2.1, where i am wrong, can some one tell me what i need to change. Also is there some other way to record video. What i need to ...

iphone orientation to the left rotates the background as the device rotates how to stop it?

ive set the shouldAutorotateToInterfaceOrientation to return to YES for orientation then i noticed as the iphone rotates the background rotates as well which is a UIImageView. how do i have the background fixed so it doesnt rotate? ...

UIScrollView content visible then bounces away

I have a pretty simple UIScrollView defined inside Interface Builder. I've pasted in some UILabels and when I run my app, I can drag to see the UILabels at the bottom but as soon as I let go it bounces away from view. What property controls this sort of setting? ...

Mobile Application design: Menu Driven vs Tab Control

iPhone does not have Menus AFAIK; most of the stuff is driven by on screen controls and widgets. Android has menus, ofcourse. I am working on porting an iPhone application on Android platform. What are the disadvantages of Menu driven approach? Thanks. ...

inconsistent setTexture behavior in cocos2d on iPhone after using CCAnimate/CCAnimation

Hi, I have a character that goes through multiple states. The state changes are reflected by means of a sprite image (texture) change. The state change is triggered by a user tapping on the sprite. This works consistently and quite well. I then added an animation during State0. Now, when the user taps - setTexture gets executed to cha...

A question related to UITextfield

Hi My question is that, 11>I have loaded 10 UITextfileds through code 2>when i click on UITextfield,requirement is that ,it should hide all the textfields below it.and keyboard moves up 3>when 2> happens at that time,user either clicks on return button or not It should be work for all 10 textfilds in both case back and forth 4>when 2...

How to "eval" Objective-C code in iPhone

Hi, does a method such as "eval" in Javascript exist in Objective-C (iPhone SDK) ? I use PhoneGap and I want to create a window which is specific for each of my project and I can't use the html file... so I want from JS call a method and give in argument OC code to ben interpreted ... Any idea? Thank you for your help ...

iPhone:How to prepare app build to my client for testing?

Hi iPhone experts, I am a registered Apple developer. I am developing an iPhone application for my client. If i want to give my app build to my client for testing my build, do i need to create a build using my adhoc provisioning profile and send the build as well as my adhoc provisioning profile to my client? If yes, how can they instal...

Is single float assignment an atomic operation on the iPhone?

I assume that on a 32-bit device like the iPhone, assigning a short float is an atomic, thread-safe operation. I want to make sure it is. I have a C function that I want to call from an Objective-C thread, and I don't want to acquire a lock before calling it: void setFloatValue(float value) { globalFloat = value; } ...

Arc text in iphone application

Hi all I want to bend the text that of UILabel from corner. It just like appear as arc or as following link. http://picasaweb.google.com/lh/photo/kfBzK4R4IlvyHfVywUNd1A?feat=directlink please suggest me, from where i start. any documentation,link, sample code. thanks amit battan ...

publish information to facebook(iPhone)

I used the FBStreamDialog to publish information to facebook wall in iPhone the Dialog textField is empty how can I to set the Dialog's textField by other vaule I mean, I have a textFiled then I put something, and click button awake FBStreamDialog how can I initial the FBStreamDialog' textField == my input textField ...

delete last character UITextField

Hi ! I have an UITextField and I just would like that every tap on a character, the first character is deleted. So just have one character in my textField every time. Moreover I would to to display every tap in the console log. Have you got an idea? Thanks! ...

Is it possible to get a CATransition animation as UIImage?

Hello, is it possible, to get a CATransition animation as UIImage? I make a example: CATransition *animation = [CATransition animation]; [animation setDelegate:self]; [animation setDuration:0.35]; [animation setTimingFunction:UIViewAnimationCurveEaseInOut]; animation.type = @"pageCurl"; an...

How to play MIDI on the iPhone?

As far as I know, there is not native or third party library available to play MIDI on the iPhone. But there seem to be quite a few apps that do exactly that. What are they using? Any clues? ...

How to write text on graph x and y-axis intervals points?

I developed graph using NSObject class and using CGContext method. The following code displaying dynamically in X and Y-axis intervals, CGContextSetRGBStrokeColor(ctx, 2.0, 2.0, 2.0, 1.0); CGContextSetLineWidth(ctx, 2.0); CGContextMoveToPoint(ctx, 30.0, 200.0); CGContextAddLineToPoint(ctx, 30.0, 440.0); for(float y =...

To add UIImage directly to file.

Hi, I want to add my UIImage directly into the file instead of converting into UIImagePNGRepresentation or UIImageJPGRepresentation(as it takes time) like:- UIImage *im = [UIImage imageWithCGImage:ref]; [array addObject:im]; NSData *data = [array objectAtIndex:i]; [data writeToFile:path atomically:YES]; But it is showing error. So the...

Setting ivar in objective-c from child view in the iPhone

Hi there! Maybe a FAQ at this website. I have a TableViewController that holds a form. In that form I have two fields (each in it's own cell): one to select who paid (single selection), and another to select people expense is paid for (multiple selection). Both fields open a new TableViewController included in an UINavigationControlle...