iphone

iPhone color picker

Hi, I'm trying to build a color picker view on the iPhone. I want to draw one of those 'color maps' and let the user tap on the color. I can create a gradient (in the X axis) ok which gives me the color range, but I also want to combine the lightness (in the Y axis) which is where I'm struggling. Any help would be most welcome. Thanks...

iPhone App Store Green Button

Hi, I want to use a green button on my app like the one used on App Store when you select an app to install and press the button "FREE". Is it possible to use a button like this without a custom image? Thank you, A ...

timeIntervalSinceDate problem

Hi guys - last resort this as I cannot for the life of me work it out! I am setting a date when my app is closed (using applicationWillTerminate) in user defaults NSUserDefaults *defaults = [NSUserDefaults standardUserDefaults]; NSDate *timeClosed = [[NSDate alloc] init]; [defaults setObject: timeClosed forKey:@"svdTimeClosedApp"]; t...

OAuth secrets in mobile apps

When using the OAuth protocol, you need a secret string obtained from the service you want to delegate to. If you are doing this in a web app, you can simply store the secret in your data base or on the file system, but what is the best way to handle it in a mobile app (or a desktop app for that matter)? Storing the string in the app is...

How to write a BOOL to plist?

I'd like to assign a boolean value to a plist file entry. I'm doing the following: NSString *aBool = realBoolValue ? @"YES" : @"NO"; [myplist setValue: aBool forKey:@"boolKey"]; [myplist writeToFile: [NSHomeDirectory() stringByAppendingPathComponent: plistFilePath] atomically:NO]; But the assignment never takes. I'm doing the ...

How remove the warning "large integer implicitly truncated" for sqlite/unicode support?

I use the solution of http://ioannis.mpsounds.net/2007/12/19/sqlite-native-unicode-like-support/ for my POS App for the iPhone, and work great. However, as say in the comments: For instance, sqlite_unicode.c line 1861 contains integral constants greater than 0xffff but are declared as unsigned short. I wonder how I should cope with ...

Preview content of UIScrollView

I have a UIScrollView which displays a series of images (paging enabled). I would like to provide a way to preview the next and the last visible image in the scrollview. For example, if I have three images (A, B, and C) and image B is currently visible, then, on the right of image B I would like to see image C through some sort of semi...

How do I save and read an image to my temp folder when quitting and loading my app

I want to save and read a UIImage to my temp folder when my app closes and then load and delete it when the app loads. How do I accomplish this. Please help. ...

UIButton border and background image

What I Want: A border indicating if a UIButton is selected or not. Background: I've got some UIButtons using transparent images, not text. These are toggle buttons (i.e. can be on or off). Problem: The UIButton class gives users no indication of whether a button is selected or not unless you change something else about the button. Sinc...

Is it possible to include a quotation mark as part of an nsstring?

I have a label that displays inches. I would like to display the number with the inch symbol (") or quotation mark. Can I do this with an nsstring? Thanks! ...

UITabBar images visible on simulator, disappear on the device

Hi all, in an iPhone app, I have a UITabBar with three tabs. One has a system image, two more have custom images. These are PNGs, 30x30, palette-based, mostly transparent. These images show up fine in the simulator, but on the device, all I see is a grey gradiented square on a tab. The shapes on these images are grey to begin with, but ...

Integrating iPhone Application with Shibboleth

Has anyone integrated an iPhone application with a Shibboleth Identity Provider? Googling did not come up with anything so I am asking the gurus directly. If it has not been previously dones, is it feasible to do so? ...

UIImageView responds to partial touchesBegan code before the 3rd click. WHY??????

On simulation, after i load the UIView that contains 52 UIImageView; it takes at least 3 clicks before the animation begins. On the first 2 clicks, the touchesBegan is invoked. i know that because the NSLog(@"Just before for loop); was displayed on the console. However the console states that the cardAnimationArray is empty in the first ...

Image editing using iphone.

I'm creating an image editing application for iphone. i would like to enable the user to pick an image from the photolibrary, edit it (grayscale, sepia,etc) and if possible, save back to the filesystem. I've done it for picking image (the simplest thing, as you know using imagepicker) and also for creating the grayscale image. But, i got...

UINavigationBar color changes unexpectedly

In my current UINavigationController, the viewControllers stack looks like this. 1 -> 2 -> 3. Before transitioning from the 2nd to the 3rd controller however, I pop the 2nd one first so that when the 3rd controller is popped, the 1st controller is on top. [self.navigationController popViewControllerAnimated:NO]; [self.navigationCo...

[iPhone] Make a view (initialized from initWithNibName) load all its subview

Assuming I load a view controller from a nib, and decide to do something with one of its subview behind the scene. At a later moment in time, I would show the view of this view controller. viewController = [[MyViewController alloc] initWithNibName:@"MyViewController" bundle:nil]; [viewController.someSubview doSomething]; //later on [...

Can we have a button on the image being showed when an app is loaded?

When we have an image named Default.png, it will be shown at the loading of the app. Can we have a button on this image so that, when we click the button only the app continues to the next page? ...

Doubt About NavigationBar

When we give the option Navigation Bar with prompt for a navigation bar, its height doubles with the items like titles and button being pushed into the bottom half. Is there a way that I can keep those at the top and add a label at the bottom part? ...

iPhone SDK How to pass selected row from plist in tableview into a UIViewController

I have a tableview populated from a plist and I want to display a detail UIView for a selected row. I don't know how to pass the selected row to the detail view controller. Perhaps someone could advise the best way to do this. The table consist of technical terms and I want to show its definition when a row is selected. Thanks in advance...

How to populate a label field from a selected row in a uitableview

I have a uitableview that is populated from a sqlite query. I want to select or click on a row and then display that row's value in a uilabel field. To show the user that the row was selected. I also want to pass that value on to different controllers that will be called later. Here is a copy of my cellForRowAtIndexPath: - (UITableVi...