iphone

how to implement auto zoom to a point using iPhone camera

I'm trying to implement auto zooming using iPhone camera. This is an additional functionality for barcode scanning. Barcode scanning is already implemented, but I've no idea about how to auto zoom to the barcode location. Any help? Thanks. ...

Alternative development for the iPad/iPhone aside from the official SDK and Adobe Air 2.5?

Hi are there any alternative development platform/languages/tools for the iPad/iPhone aside from the official SDK ro Adobe Air 2.5? Any insights will be greatly appreciated! Thanks guys! ...

Unable to interact with switch when added as subview to UIView and that view as a subview to cell

Hi, I m adding UIView to cell which has a switch as a subview to it. Now I am not able to interact with the Switch. It does not change to value when I tap on it. ...

Core Graphics state management

In some code snippet - (void) drawLayer:(CALayer *)layer inContext:(CGContextRef)ctx { CGContextSetFillColorWithColor(ctx, [[UIColor darkTextColor] CGColor]); UIGraphicsPushContext(ctx); ... the current fill color is set, then the state is pushed to the stack. Other snippet: - (void) drawLayer:(CALayer *)layer inContext:(CGCon...

animation not running perfectly on iphone

i m making a game in which animation is running perfectly on iphone simulator but when i run on the device it crawls.I m using NStimer to repeat the function in which animation is running.NSTimer repeats after 0.4 sec and animation duration is also 0.4.It is running perfectly on simulator but on device when animation duration completes t...

Iphone Open Flow With Flip Functionality

Hi, I am using Open Flow Library of Alex Fajkowski, there is a missing functionality that when user tap on an image it flips, I want to do that, but I cant figure out how, if any body have any idea than pleas share it with me. Thanks ...

Is it possible to build an iphone app that lists available wifis and allows the user to connect one?

Hello experts! My question is as the title states. Is it possible or is that restricted to the settings app? I have tried searching for an answer in the docs but no luck. ...

OpenGLES tesselation with iGLU ?

Hello, I am trying to use polygon Tesselation with iGLU : http://code.google.com/p/iphone-glu/ But can't find out how does it work (with OpenGLES) ? So I have a 2D (x and y) polygon declare as follow : // *2 because x and y GLfloat poly[nbOfPoint*2] = {1.0, 0.0, 0.0, 1.0, etc..} So how can I triangulate ...

Error from Debugger: The program being debugged is not being run.

Please dont mark this as duplicate I am getting this error while debugging my app on device I tried everything from these posts (see below) but no luck - http://stackoverflow.com/questions/2037328/iphone-sdk-error-from-debugger-the-program-being-debugged-is-not-being-run http://stackoverflow.com/questions/1727169/xcode-fails-to-run-a...

UIPickerView in Iphone - Rotation Problem

Hi I have taken two picker view in a view and set height 160 for both through coding 160 is the minimum height for it I think and also set the flexible width (height is not flexible in IB) for both Now it show ok in Iphone simulator when it is vertically but not shown ok when it is horizontally due to height is not flexible. Is an...

How do i compile a static library for armv6 or armv7 directly from terminal

I am working on application for iphone that needs Compression & Encryption(AES) so I went for ZipArchive Library I have Successfully Built the library using command make against the MAKEFILE by adding -m32 to Cflags as the following: CFLAGS = -m32 -D _ZIP_SYSTEM_LINUX then in the Terminal make that produced libzip.a and that w...

In PickerViewController

Hello, Can anyone give me the source code for "How to change the text color when the item is selected in selected indicator and also how to perform the shake effect for iphone sdk" ...

how to create a hyperlink for the NSString variable.

hi.. I am new to iPhone developemnt. NSString myUrl = @"www.google.com"; I need to know how to create a hyperlink for the above NSString variable. In the MFMailComposeViewController I need to use like below [mailViewController setMessageBody:myUrl isHTML:YES]; Please help me out. Thanks for any help. ...

Correct colour display of Default.png on iPhone

I'm using the Default.png method to create a splashscreen. I'm using the same file for my background and the Default.png (except default.png has the 20 pixel status bar at the top). However, the iphone isn't displaying them in them the same. The Default.png is being displayed darker than the background, so it's painfully obvious when th...

applicationDidEnterBackground with integer iteration

Hello everyone. My question is quiet simple (I think). I have a class that implements a simple chronometer (using some integers and NSTimer). I would like to close my app (so enter in background mode) but I would like my chronometer still continue to count. How can I manage that ? Thanks a lot ! ...

iPhone, how do I get the device short date format ?

I've not got the device price format setting. NSNumber *temp = [NSNumber numberWithDouble:dblPrice]; NSDecimalNumber *someAmount = [NSDecimalNumber decimalNumberWithDecimal:[temp decimalValue]]; NSNumberFormatter *currencyFormatter = [[[NSNumberFormatter alloc] init] autorelease]; [currencyFormatter setNumberStyle:NSNumberFormatterCurr...

Why my webview detects events along with phone number

Hi friends Why my webview detects events along with phone number? my code is webview.dataDetectorTypes= UIDataDetectorTypePhoneNumber. Is it can disable the events alone. Regards, sathish ...

[iOS] UIButtonTypeInfoLight inside rounded rect?

I know, I know, it's a venial aesthetic question, but I want to insert an info button in my navigation bar not as the default info UIButton (UIButtonTypeInfoLight), but inside a rounded rect so that it appears in a uniform manner to the other UIBarButtonItem buttons. Is it possible that there is no way? Using custom UIButton with an imag...

[iOS] How to preserve touch event after new view is added by long press

Hello, When I add a new view after detecting user's long press, I get touchesCancelled event. However, I want to preserve the long press event to newly added view. What I want to implement is user touch & hold the screen, then new view added, and user can move touch around in the newly added view without touch up and touch down again. ...

Using Retina images in a local UIWebView

For some reason, I cannot get a UIWebView to "play nice" with my new Retina images. The issue, step-by-step: I am loading a series of HTML help files out of the bundle. My code loads different HTML files if it's an iPhone 4 (LWERetinaUtils below is a util class I have written). I have read in this question that it is not possible for...