iphone

Do I need the old private key to generate new Distribution Certificate?

Hello All, My distribution certificate is going to expire in few days. I have changed my system so I want to know that do I need the old private key to create new certificate signing requrest? Also I wanted to know that is is necessary to use the same email ID that is used to create the developer account while creating new certificate ...

How this iphone application works ??

I am just looking iphone apps at apple store, and i have found this app g8, http://www.dynolicious.com/, but can you give some ideas or logic that how this app works, i mean how it is possible to measure car performance without using or communicating with any external hardware ...??? By using just hardware built into iphone, ie. accelero...

Programmatically determine active configuration

Is there a way to determine the active configuration (that means Debug or Release) in code? Something along the lines of #ifdef XCodeConfigurationDebug ... #endif #ifdef XCodeConfigurationRelease ... #endif I know that it's possible to do this by adding custom compiler flags. However, I'm looking for a more global s...

how to do image morphing as in FatBooth app - iPhone

Hello All, I want to build a similar app as fatbooth and want some ideas on how to do this. I googled for Image morphing in iPhone but didn't find anything. Should I use some server side language to morph Image? Any help would be much appreciated! Thanks Saurabh ...

iPhone app detecting wifi network while running in the background

Hi, does anyone know if there is a way for an iPhone app to continuously detect the presence of WiFi networks while running in the background? What are the limitations? Cheers, Marko ...

Overriding internal UIViewController methods because an internal method is giving me bugs

What are the consequences of overriding internal UIViewController methods? [UIViewController viewDidMoveToWindow:shouldAppearOrDisappear:] is giving me some problems. It resizes my frame to values I do not desire sometimes. I do not even know where it picks off the new frame's values (it is close to the size of the superview to where I ...

ShopKick sound detection on iPhone

Is anyone aware of how ShopKick iPhone app is able to continuously record sounds (and process them) while running in the background? ...

How do I programmatically provide a glossy look to UIButtons?

I would like to add 3D or glossy look to some iPhone UIButtons, but do so without the use of PNGs or stretchable images. I have a lot of buttons of varying shapes and sizes with lots of colors which are generated on the fly, so prerendered images are not feasible in my case. How would you go about drawing the gloss on these buttons pro...

Sha256 in Objective-C for iPhone

Hi, when i use this code to create a sha256 of a string unsigned char hashedChars[32]; NSString *inputString; inputString = [NSString stringWithFormat:@"hello"]; NSData * inputData = [inputString dataUsingEncoding:NSUTF8StringEncoding]; CC_SHA256(inputData.bytes, inputData.length, hashedChars); it returns the hash correctly, but i nee...

Retina display compatibility

For our iPhone app, we are using 50 x 50 user image (from facebook). It works fine for iPhone 3G and 3GS but not for iPhone 4 due to its high resolution display. For iPhone 4 we tried to send 100 x 100 (variable height) image but it is not working for obvious reasons. Any thought? ...

XCode can't find GCC

After i updated iPhone SDK to 4.1 I can no longer compile neither for Simulator or Device. I get the following message: error: can't exec '/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/gcc-4.2' (No such file or directory) Solution for this? ...

Why does this line indefinitely repeat?

- (CGFloat)tableView:(UITableView *)tableView heightForRowAtIndexPath:(NSIndexPath *)indexPath{ UITableViewCellFixed *cell = (UITableViewCellFixed *)[tableView cellForRowAtIndexPath:indexPath]; the second line (ie: the first line after the function is declared) is repeating itself indefinitely. I have no idea why. I got a stack ov...

iPhone SDK: Converting/uploading an image to a SOAP service

I'm having issues converting/uploading a camera image to a remote SOAP web service. Here's the code for converting the image to a byte array: UIImage *image = [info objectForKey:UIImagePickerControllerEditedImage]; if (image == nil) image = [info objectForKey:UIImagePickerControllerOriginalImage]; NSData *imageData = [NSDa...

Chinese Localization

I've localized my application in several languages and they all work fine except, I don' know how to test in Chinese. I have made all my .xib files zh for Chinese Simplified but don't know where Chinese is on the iPhone Language settings. I can't tell the difference between Chinese, Korean, Japanese or any other similar far eastern langu...

How to clear cache image in iPhone?

Hi friends, I want to clear my cache in my application. Some times, my application get crashed due to some memory warning like, Received memory warning. Level=1 Received memory warning. Level=2 In my application, i have used asynchronous method and downloading image in cache and displayed in the view. so how can i clear...

Sample Camera Functionality in IPhone Application

Hai Can any one suggest me how to work with camera functionality in iphone simulator? Thanks Basanth ...

Is it possible to have a repeating horizontal background image and a background colour for a UIView?

I'm developing an iPhone 4 app using iOS 4 SDK and am trying to add a small gradient image to a UIView object. I want to the background to repeat horizontally but not vertically. I then want the rest of the UIView to be filled with a background colour. Is this possible? ...

integrating iphone leader board in game application.

Hi guys, I am new to xcode. I want you people to tell me about how to integrate apple's leader board in our iphone game application. Basic tutorials will be very much helpful. Thanks very much. Best Regards, Naveed Butt ...

Network interface name for VPN connection on iPhone

Hi, on the iphone sdk 3&4 the wifi network interface name is en0. How can i find out the name for the interface when a vpn connection is running, this is so i can get the ipaddress. Is there a way of querying all available network interface names on the device Thanks ...

iOS: Current touch location in a document opened in UIWebView or QuickLook

Hi there, I would like to write an iOS application that uses the native support to viewing multiple file types (e.g. HTML, PDF, Pages, Word) in a high level control such as UIWebView or Quicklook. Nothing too hard here. However I would then like to support selection of text, adding custom Context Menus to a selection and, at a minimum,...