iphone

How to use bluetooth to connect two iPhone?

I want to use iPhone SDK to implement a bluetooth connection between two iPhones, but I don't find any bluetooth API in iPhone SDK 3.0. Can anybody help me? Thanks. BTW: Is it possible to connect more than two iPhones at the same time by using bluetooth? ...

Removing the status bar in my app.

I'm making an small game for iPhone in openGL. First I removed the "status bar" by writting [[UIApplication sharedApplication] setStatusBarHidden:YES]; Which worked, but only removed the status bar when my app began to run. Then I modified my project.plist <key>UIStatusBarHidden</key> <true/> And now the status bar is never show,...

iPhone - UIImage Leak, CGBitmapContextCreateImage Leak

Alright I am having a world of difficulty tracking down this memory leak. When running this script I do not see any memory leaking, but my objectalloc is climbing. Instruments points to CGBitmapContextCreateImage > create_bitmap_data_provider > malloc, this takes up 60% of my objectalloc. This code is called several times with a NSTim...

How to draw a dotted rectangle marquee on iphone?

How to draw rectangle something like this in iphone sdk using core graphics ...

cocos2d MFMailComposeViewController

hi, i tried to insert a mail tool in my app.... my app is based on the cocos2d engine the Toolbar (at the top ->cancel,send...) is visible but i can't see the other parts of the mfMailComposerViewController view :-( code: -(void)displayComposerSheet { MFMailComposeViewController *picker = [[MFMailComposeViewController alloc] i...

UIPickerView User Interaction Single Wheel

Hello all, Does anyone know of a way to disable user interaction on a single wheel in a multi-wheel UIPickerView control? ...

Problem with iphone UIImageView in a UIScrollView with rotate, flip and zoom options

Hi, I have a list of images shown in a horizontal scroll view with "flip between" option. This scroll view is inside an tab bar. My requirement is like, when i tap on that image it should rotate 90 degree to horizontal and be shown in fullscreen with animation. This is similar to what we have in default "Photos" application in iphone, ...

iPhone SDK: Creating a big, red UIButton

Using the iPhone SDK, how would I go about creating a red "delete" button similar to the one used when deleting contacts on the iPhone? Screenshot (I'm trying to duplicate the red button at the bottom) Thanks! ...

Moving CGPaths by x,y pixels?

Is there a way to move a path on screen by (x,y) pixels using directly a CGPathRef instead of walking through its points and lines again in drawRect method? I want to be reusing my old CGPathRef when I want to move it on screen instead of recreating it with new pixels. ...

MPMusicPlayerController doesn't respect device mute switch?

I'm using the MPMusicPlayerController application music player, created like: appMusicPlayer = [MPMusicPlayerController applicationMusicPlayer]; The issue is that it will play music no matter which setting the device mute switch is in, it doesn't seem to care either way. Is there some audio session mode I need to be in to have it resp...

iphone dev:NSTableView and NSMutablyArray and File Names have exe_bad access

I have a navigation controller, the rootviewcontroller is a tableview, which will show all file names, when user click the file, will show the file content in contentviewer. User can go back use navigation bar. The problem is sometimes user use navigation bar go back. The app crashed. say exe-bad-access at cellForRowatIndex this line: ...

Navigation bar overs top portion of my view.

I have an application with a tab bar controller and a navigation controller. In one of the child content views of the navigation controller, I have a image view at the top and some buttons at the bottom. The problem is that the navigation bar obscures the top portion of the image view. My content view is loaded from a NIB file and the im...

Development and Distribution certificate for iPhone dev

I am building an iPhone app that will be submitted to the App Store. I am a bit confused about Development and Distribution certificates that you get from Apple. Do I need to install both? Why are both needed? Does this mean that when I am ready to distribute that I need to sign the app with the Distribution certificate and when i a...

How could I do the attach effect, when you select the Send by Mail option in Photos App

How could I do the attach effect, when you select the Send by Mail option in Photos App, that when the background turns dark, the mail app is open and the image is attached to the mail body. ...

About screen on an iPhone app. Needed?

I've created an app, that is self-explanatory. What is the etiquette in the iPhone world: do I still need to have an About button that explains what the app does, website, email, all that? Or is that unnecessary? ...

iPhone keyboard problem in OS3.1

I am having a problem that just started happening in OS 3.1. I have a UITextField in a custom UITableViewCell. In didRotateFromInterfaceOrientation, I call reloadData to reload the tableview to resize the cells. The problem that is happening is: If you are editing text in that UITextField and have the keyboard up, then rotate the pho...

iPhone - Center UIImage in UIImageView

I have a UIImageView. I get a UIImage from a URL. The image displays in the UIImageView, but I can't get it to center correctly. The UIImage is 80 x 68 pixels. The UIImaveView's size is 90 x 90. When I display the UIImage in the UIImageView the UIImage is shrunken so that it fits, although it is already smaller than the UIImageView....

libxml/tree.h no such file or directory

i am getting following errors. I have already added libxml2.dylib to my project, how ever i am getting this type of trouble. Plz any body help me. ...

iphone Distribution App in app store. real name

I am ready for distribute for my first iphone app in app store. I am an individual developer.I want to confirm from any experience individual developer who already distribute app in app store. The question is i donot want to myself real name appear in my app. can i have another display name w instead of my real name appear with my app. ...

Is there a way to obtain a total Affine Transform that represents the current layer state?

I mean, if I have an object and I apply 3 transforms to it, for example, suppose I don't know what each transform is doing, but I have the matrices. So, I have Object X > transform1 > transform2 > transform3 > final result is there a way to obtain an Affine Transform that can represent the 3 transforms, so I can obtain the same resul...