iphone

Iphone 3d rotation for 2 buttons

Hello, In my IPhone application, I have two buttons with background image set. At any time one button is active an the other one is inactive. I want to display the two buttons in 3d style such that the active image is in front and the other on is at the back but visible. When the user clicks the inactive button, it should come to the...

Storing Images

Hello All, How to Store Large size Images into iPhone Application? Images are taken from UIImagePickerController but saving into Database and retrieving from Database crash the application. ...

code sign error while installing application on iPhone

Hello all, I have registered for Apple Developer Program. I have installed my provisioning profile and other certificates successfully. But still, I am getting error while installing the app for ad-hoc distribution. I am not sure about this, but I am getting my company name as "CXXXXXXXXX.abc-xyz.com" in mobileProvision certificate. Al...

Change the color of a button on a standard pop-up action

I am using a standard pop up action in my iphone app (the pop up at the bottom of the screen). This has 2 buttons "ok" and "cancel". It seems the standard colour scheme is to have the top button red. I want to change this so the top button is green. I have been googling forever and can't find the solution. Any ideas would be great. Thank...

Checkable UIPickerView

hello, i can't find a property to set my UIPickerView checkable... in other programs, I can select a item and the pickerView show a checkmark :-( ...

“Normal” UIButton causing obj_stack_overflow or EXC_BAD_ACCESS exception

It sure looks innocuous enough. In my App Delegate, I check NSUserDefaults for a flag to show tips at startup. If it’s set then, at the end of applicationDidFinishLaunching:, I do this: TipsViewController *vc = [[TipsViewController alloc] initWithNibName:@“TipsView" bundle:nil]; [window addSubview:vc.view]; [vc release]; The idea is...

iPhone-SDK:Call a function in the background?

Is it possible to call my function in the background after certain interval programmatically in iPhone SDK development? I want to call one particular function in the background for certain time intervals(may be every 10 mins) during my app in on running.. Could you please share your ideas. thanks. Clave/ ...

webViewDidFinishLoad: Firing too soon?

I'm trying to transition between loading of different web pages by hiding the webView while it is loading a page. However, I'm seeing that some image intensive websites are causing webViewDidFinishLoading to fire too soon and when I show the webView at that point then for a split second you get a view of the previous page. Any ideas on ...

Orientation of viewController

Hi all, i am having tabBarController.It is having 3 viewControllers.I want to support landscape mode in only one of these viewControlers.and other 2 view controllers in potrait mode.How to achive this. ...

trying to strip out whitespace doesn't work in NSXMLparser foundCharacters method

hello all, I'm parsing an xml file and i've been trying to strip out the whitespace characters in my currentElementValue because it's messing up a couple of things. I can see in my output window that a couple of carriage returns and tabs are present (gdb) po string Keep the arms on the side, and lift your leg. (gdb) po currentElementV...

SQLite behaviour on INSERT on iPhone

I'm currently doing the following as part of my iPhone application NSArray *paths = NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES); NSString *documentsPath = [paths objectAtIndex:0]; NSString *filePath = [documentsPath stringByAppendingPathComponent:@"cities.sqlite"]; sqlite3 *database; if(sqlite3_open...

How I get the tag value from the sender

- (IBAction)onClick1:(id)sender { // Make sure it's a UIButton if (![sender isKindOfClass:[UIButton class]]) return; NSString *title = [(UIButton *)sender currentTitle]; } I understand how to get the title and other current values but I don't see how I can get the value of the tag property. ...

iPhone-SDK: Adding Image on Navigation Bar:

I have a navigation controller which also has a table view. I want to add an image left side of the navigation bar on top programmatically. When i tried to add by the below code in viewDidLoad: CGRect frame = CGRectMake(0.0, 0.0, 94.0, 33.0); UIImageView *image = [ [UIImageView alloc]initWithImage:[UIImage imageNamed:@"topBarImage.p...

Sorting an array of doubles or CLLocationDistance values on the iPhone

I'm trying to sort a list of CLLocationDistance values by closest distance (ascending order). I first converted the values to NSString objects so that I could use the following sort: NSArray *sortedArray; sortedArray = [distances sortedArrayUsingSelector:@selector(caseInsensitiveCompare:)]; NSString cannot sort on the numeric value. ...

playing video in custom size screen - view in iphone

OK. Some New Query Here. Suppose user taps on a button & video begins to play. Now when video plays, it always in full screen mode. But what do i need is explained below. Video should be played in a portrait mode. (but normally video is played in landscape mode ). How? Thanks in advance for sharing your knowledge with SO... ...

How to integrate apple payment gate way with iphone?

I want to integrate Apple Payment Gateway with my iPhone app. i.e Suppose user wants to purchase gold from the online store. He/she can do payment through apple payment gatway. If anybody know than give me advise. ...

function example for sortedArrayUsingFunction in Cocoa

I'm trying to create a compare function like the example on the apple site: http://developer.apple.com/mac/library/documentation/Cocoa/Reference/Foundation/Classes/NSArray%5FClass/NSArray.html#//apple%5Fref/occ/instm/NSArray/sortedArrayUsingFunction%3Acontext%3A The example is not objective-c. Does anyone know how I can convert the ex...

UIView. How do I constrain scaling to one dimension only.

I have an instance of UIScrollview containing an instance of UIView. The UIView is just a container for a horizonal array of UIImageView instances. - Zooming is provided by UIScrollView and UIScrollViewDelegate. I would like to constrain zooming to occur only along the horizontal axis with no vertical scalling at all. How to I do this? ...

Apple "aprove" adding UIViews inside non-documented Views?

Apple submission app aproves when we add UIView inside non-documented UIViews? I mean, // search for non-documented subview... UIView *nv = ... //non-documented view; [nv addSubview:myNormalView]; Is that ok to Apple? Thanks. Hami ...

IPhone- marking an icon or button with a number to indicate new activity like mail app

Hey, I am wanting to display a number on top of an icon when a user receives a new message, similar to the mail app and sms app when new messages are received (the red number on top of the icon) (btw i want to do it inside my app not on the icon on the home screen)... I know i can just have a little image with every number and draw it...