iphone

font in iphone sdk?

is it possible to bring another language font in iphone sdk and to insert that font value (for example,chinese) in UILabel value? any help please? ...

how to declare an array globally

hi i am new to iphone. what i am doing is declaring a NSMutable array named as labels, and that is declared in viewdidload.But when i access the label in buttonclick function it shows null. Previously i declred propery in .h file and initialize in init function also. please help where can i declare and how to declare a mutable array that...

how would I use iphone motion detection for an egg shaking-like application?

I am hoping to build an application similar to those egg shaking applications, to better understand how to detect motion on the iphone. I've been looking at accelerometer methods and motion and motion methods, but can't seem to get working what I want to do. The specifics of my need are as follows: I want to be able to play one sound wh...

problem regarding iphone code

i am a new programmer .... i am looking at a project which was provided me by my org. for study... the problem is that in this project i found some codes which i never saw before please tell me why the following code is written there -(void)notifications { [[NSNotificationCenter defaultCenter] addObserver: self selector: @se...

How to rotate UIImage in image center.

double angle = -15; UIImage *image = [UIImage imageNamed:@"test.jpg"]; CGSize s = {image.size.width, image.size.height}; UIGraphicsBeginImageContext(s); CGContextRef ctx = UIGraphicsGetCurrentContext(); CGContextTranslateCTM(ctx, 0,image.size.height); CGContextScaleCTM(ctx, 1.0, -1.0); CGContextRotateCTM(ctx, 2*M_PI*angle/360); CGContex...

Application failed codesign verification

I'm getting the following error when trying to submit my app to the app store. I went through the initial provisioning process and am able to run the app on my phone so not sure what's wrong. Application failed codesign verification. The signature was invalid, or it was not signed with an Apple submission certificate. EDIT: I tried do...

iPod Equalizer settings

Hi all, If I made some EQ settings within my application will it reflects in the audio played by the Music App. My requirement is like, I need to configure the audio out settings of iPod from within my application. Will this works? ...

Getting zom a particular Image

HI, I have a photo galary having a large number of thumbnail images,now i want to zoom a image when i click on a particular image. this can be done by having different UIImageView for every image but thats is not a programatic approach, so is there any one who can help me. THANKS IN ADVANCE ...

My app never goes to background, always terminate, why ?

Hi, I have an app that always terminate, never goes to suspend mode. I have other apps that go to suspend, the only difference that I can see between them are: app that terminates: In the left popup menu of the main project window, no matter wich option I select, it start always with Device - 3.2 or Simulator 3.2, even If I choose my...

How do I initialize a view to an interface orientation?

The problem is that I am launching in-app email and triggering keyboards (via UITextFields) and they are coming up portrait on my landscape app. I am able to rotate it portrait, then rotate it landscape again, observing the black rotation corners animation that occurs when an app rotates from portrait to landscape. Since I've locked ou...

Image comparison using Objective C.

Hi, i am planning to create an application to compare pill images if they were the same. Is there any source that i could use that detects colors, shape, size of the pill in the picture and compre if that picture is the same with the other picture of the same pill? Regards, ZaldzBgz ...

How would I implement undo in an OpenGL ES painting application on the iPhone?

I'm using Apple's sample application GLPaint as a basis for an OpenGL ES painting application, but I can't figure out how to implement undo functionality within it. I don't want to take images of every stroke and store them. Is there any way of using different frame buffer objects to implement undo? Do you have other suggestions for b...

Iphone - DismissModalViewControllerAnimated within imagePickerController

Hi, Lets say I have a controller class A which implements UIImagePickerControllerDelegate. within A , I implement the delegate like this : -(void) imagePickerController:(UIImagePickerController *)picker didFinishPickingImage:(UIImage *)image editingInfo:(NSDictionary *)editingInfo { [self dismissModalViewControllerAnimated:YES]; ...

Role of SQLLite in iPhone programming

Hi, What is the role of SQLLite in iPhone programming? Where do we use it? Is there any nice link to read around this topic in detail with sample code? ...

SKProductsRequestDelegate failure

The SKProductsRequestDelegate has one single method: - (void)productsRequest:(SKProductsRequest *)request didReceiveResponse:(SKProductsResponse *)response Usually, I find these sorts of delegates will have several methods for handling multiple cases, rather than just success. For example: -(void) connection:(NSURLConnection *)connec...

Auto completion in xcode

In XCode 3.2.2 completion works whenever it chooses to. One time it will, one time it won't. Is there some flag or add-on to increase the auto-completion success rate ??? Is there maybe a better code editor that can link to xcode in a good manner which has better coding capabilities then XCode ? Thanks ...

iPhone: Handle multiple action sheets

One of my views uses 3 action sheets that come from when various buttons are clicked. Since I only have one - (void)actionSheet:(UIActionSheet *)actionSheet didDismissWithButtonIndex:(NSInteger)buttonIndex method, what is the best way to know which action sheet I am dealing with? Choosing the first button on any of my actionSheets would...

UISearchDisplayController : application is showing exception

Hi, Im trying to work with UISearchDisplay controller the application is launching correctly. When i start typing in the UISearchbarController its showing the following exception and exiting the application. The exception is as follows: [BrowserViewController tableView:numberOfRowsInSection:]: unrecognized selector sent to instance 0x5...

Possible for an app to start an VPN session?

Is it possible on iOS4 to start the built-in VPN service? If it is configured and all. To start it and get a message when it is done? ...

why we need to implement UiNavigationcontroller delegate in ImagePickerController in iphone

hello all I am using Uiimagepickercontroller to record a vedio there I need to implement two delegaes.. 1 is UINavigationcontroller delegate and 2 is UIImagepickercontroller delegate..If we not use navigationcontroller delegate its giving me warning at the code picker.delegte=self; what is the necessity of UINavigationControllerDelegate...