iphone

Making fire effect on iPhone

I'll describe ways that I already know, and can do, and want to hear another suggestions, or may be even solutions :) Create N frames of fire with semi-transparent pictures (PNGs) Like at this site Create pixel-based fire - line by line with shifting up. (not the best way I think) Like here Any other solutions? ...

iphone change fill color of a shape drawn in context

I have drawn an enclosed shape using CGContext and filled a default color. I want to change the fill color on some event, how can I do that. There is only one enclosed shape in the context. ...

UIToolbar with images and titles like UITabBar

Hello, is it possible to create a UIToolBar containing UIBarItems with both, images and titles for better explaining the function behind the item? A UITabBar is designed to select 1 of n items. The current item is highlighted. This is not what I need. I'm needing to call a function without selecting the current toolbat item! ...

How to run the iphone youtube clips?

How do really Iphone run youtube clip, which I know there's no support .Flv or flash? Convert on the clip to run them? If so what format they convert it to? ...

How can I view an NSError?

What's the best way to log an NSError? - (void)epicFail:(Lol *)aLol withError:(NSError *)error { NSLog(@"Error: %@", error); } Gives me a null message Thanks. ...

How do you interpret dates with NSDateFormatter?

In the Apple Docs, they say that NSDateFormatter uses the Unicode for spec. I've read the spec, but I'm having troubles interpreting this date: NSDateFormatter *frm = [[NSDateFormatter alloc] init]; [frm setDateFormat:@"EEE MMM dd HH:mm:ss ZZZ yyyy"]; NSLog(@"Tue Oct 13 09:24:15 +0000 2009 becomes %@", [frm dateFromString:@"Tue Oct 13 ...

iPhone Map Application

Hello All, How to Open iPhone Map Application from our application and passing the parameter to that? ...

set network timeout and exception in iPhone

Hello all I am developing an iPhone application in which I am loading lots of data from another server via web-services . I want have read somewhere in the apple guides that for network aware applications you have to set the network time out and after that you have alert the user for the same that "The network is not available". How c...

Customize UISearchDisplayController

Are the following objects customizable? 1. UISearchBar Scope Buttons (UISegmentedController) 2. UIResultsTableView 3. Keyboard (at least so it's colored black) ...

Deleting Buttons

Hi, I have run-time created buttons in a View, placed in a grid-looking way. Now I want the user to have the possibility to delete each and every one of them by choosing. How can I identify to one the user have chosen to properly delete it out from View? I use Tag property in the creating process. Thank you. ...

iPhone-SDK:Thumbnail images in iPhone view controller view.

Hi there, I have 8 images in my project which has 320 * 480 pixels(full screen image). I need to show all the images in thumbnail format in a view (same like how we see in built-in Cameral Roll). When user selects one, it should display that image with the same actual size (320 * 480) as background of my first view. May i know how to a...

SSL Domain Error in IPhone- https connection

Hi All, I am using CFNetwork to connect to a https webservice , whose server is a Verisign certified. I get the appropriate response from the server some times. But the rest of the time I am getting two kind of errors. 1."Operation could not be completed. (kCFStreamErrorDomainSSL error -9807.) 2."Operation could not be completed. (kC...

Iphone Icon Changed

Hi When i start to develop my application , I used iPhone version 2.0.... Now i have update Iphone version 3.0.. My simulator works fine both in iphone 2.0 as well as iphone 3.0.. But When i run my application in 2.0 all icons in the iphone should be correct . But when i run this in 3.0 my other applications icons are changed.... (Exam...

Changing Views from UISegmentedControl

I have a best practice type of question regarding Nibs and UISegmentedControls. I have a nib file which contains a UISegmentedControl with 3 buttons. Each of which displays a different view in the main part of the window when toggled. Everything is working fine but I suspect my approach is flawed and was wondering if someone could sugg...

iPhone + sqlite3 + not in query

Hello, I want to write a in query in my code. My query is something like: SELECT PlayerID, PlayerName, Type, BattingSkills, BallingSkills from Player where TeamId = 6 and PlayerID not in (163,174) order by battingSkills desc limit 4 In my xCode I am writing the query like below const char *sql = "SELECT PlayerID, Player...

iPhone: change hex color format to UIColor

hi all, i am creating a application, in which i pick the color of label from XML file.XML file return the color in Hex format(for ex. #00FF00). so how can i change this value to UIColor ...

How do I obtain the iPhone International Mobile Equipment Identity programmatically?

Hey, calling #*06# tells the IMEI ( International Mobile Equipment Identity ) of the device. I checked International Numbering Plans and found out that this actually is the IMEI number. Is it possible to obtain it programmatically? Thanks ...

Saving video from UIImagePickerController to Core Data on iPhone OS

I need some guidance on how to save video data to core data so that I can retrieve it again later. I have no problem retrieving the NSURL that is returned from UIImagePickerController but then I'm not sure how to go about saving the video data to Core Data. I can already save and retrieve regular images from Core Data but I'm not sure h...

Google Calendar API: GDataEntryCalendarEvent question

Hi, I'm trying to use the google GData api to insert an event in a google calendar. My question is this: I don't see anywhere in the header files for GDataEntryCalendarEvent the ability to add guests to an event? Anyone know how to do that? ...

CAGradientLayer problem : displaying only plain colors [Iphone]

Hi, I'm trying to display a gradient using CAGradientLayers. I just set two colors and i expect to see a gradient between them, unfortunately only the first plain color is displayed without any gradient. Here is my code : - (void)viewDidLoad { [super viewDidLoad]; CAGradientLayer *gradientLayer = [CAGradientLayer layer]; gradientLay...