iphone

Add strings to a two-dimensional array

How do I add objects to a two-dimensional array? The array is initiated with a couple items (see below), but I need to add more items to the array. images_ = [[NSArray alloc] initWithObjects: [NSArray arrayWithObjects:@"http://farm3.static.flickr.com/2735/4430131154_95212b8e88_o.jpg", @"http://farm3.static.flickr.com/...

iPhone, how do I set my date pickers minimum date to today in code?

I need to set my date pickers minimum date to today in code ? ...

How do I modify the background color of an empty UITableViewCell object based on it's position?

I'm trying to write code to modify the background color of a cell based on it's position in the table. While the following code 'works', it only effects cells that are passed to it. Empty cells don't get effected. - (void)tableView: (UITableView*)tableView willDisplayCell: (UITableViewCell*)cell forRowAtIndexPath: (NSIndexPath*)indexP...

how to scan barcode using phonegap

I need to scan a barcode using phonegap in Android and iPhone. Is there a way to do this? If yes, please share links. ...

Where to buy 3d model collection for game

Hi Guys, I would like to make some iPhone game but I need 3d models characters. I am looking for low polygon models and sort of cartoon theme (think about Warcraft 3 theme) Here is the example that I found in the net: http://www.dexsoft-games.com/models/humans.html By the way, I do not mind to buy the models as long as it is low poly ...

iphone JSON Parsing.. How can i parse this data.

this is the print screen of nsmutablearray. this 2409,2410,2412 is not fix key. it coming dynamically. { 2409 = ( { AltSelectionPrice = "2.00"; }, { AltSelectionPrice = "3.00"; } ); 2410 = ( { AltSelectionPrice = "7.00"; }, { AltSelect...

How to set backgroundColor for UIsearchBar with UIColor?

I want to custome uisearchbar style? please help me! thanks! ...

Get iPhone Status Bar Height

I need to resize some elements in relation to the height of the iPhone's Status Bar. I know that the status bar is usually 20 points high but this isn't the case when it's in tethering mode. It gets doubled to 40. What is the proper way to determine to determine it's height? I've tried [[UIApplication sharedApplication] statusBarFrame] b...

[iPhone app] Dynamic expandable UITableView with sections

Hello, I am currently creating a UITableView with expandable/collapsable sections. I get data from the Internet in JSON format, storing it in arrays just like this : {Section 1 {s1 data 1, s1 data 2, ... }, Section 2 {s2 data 1, s2 data 2, and so on}} Sections can be alphabetical letters, year number or whatever. I create my table v...

can we have dynamic application icon & splash screen for iPhone OS 4.0/3.0 ?

I can make the splash screen dynamic... but wat about the icon ? ...

is Zen nineSixty theme compactible with iPhone?

Hi All, I have created a custom theme using Zen nineSixty (960 Grid system) in drupal and it works and looks great on all major browsers. I was just wondering if anyone could let me know if I need to do anything else to get this theme working on iPhone or is it auto compatible. Many of our potential clients use iPhone so was wanted to c...

Edit a boolean value on click on a buton at customised table view cell

Hello, i have a table view with customized cell. each cell contains a button that is added a contentView addSubview. Now I want to update a Boolean value in database table regarding to row of which button is clicked. How should I get the index of the row whose button is clicked as when you click on the button it does not select the r...

UISwitch and UIButton in UITableViewCell, how to ident them

Hi, I've got a little problem in my UITableViewCell. Each Custom Cell have an UISwitch and an UIButton. And when the user change the value of the UISwitch i would like to set the button.hidden property to YES. I can find which UISwitch was clicked with this method: - (IBAction)closeHour:(id)sender { UISwitch *senderSwitch = (UISwitc...

Access Photo Library in cocos2d

Hi all, I am creating a game using cocos2d. Now what I want is I need to insert the image from Photo Library to my application. Can you please tell how can we access Photo Library through cocos2d? Thanks in ADVANCE... ...

Same source code, compilation on 2 different MAC => not the same beahviour

Hi All, We have 2 MAC for iPhone development with the same XCode version. When I build the application on MAC 1 and run it on iPhone 3GS, it does not work properly: many crashes. When I build the application on MAC 2 and run it on the same iPhone, it works. We have checked target settings, Xcode preferences and there is no difference...

Question about Thread + iPhone

I am having a confusion with threads. Suppose I start a thread in a ViewController which is doing some heavy processing. If I pop the viewController while the thread is still in execution will the thread stop executing or whether it will continue its execution. ...

Improve on this pattern for handling how a mobile app knows how to find it's server

I'm considering how to identify server(s) to an app on a mobile device that utilises a wcf/web service. (1) I anticipate all going well that I will need to migrate the server between hosts from time to time to handle load. I'd like to be able to do this without service disruption. (2) I also anticipate that all going well I will want t...

Hide detail View

I need to hide a detail view that is shown when clicked on a tableviewitem - (IBAction)done:(id)sender { [self.delegate OrderDetailsViewDidFinish:self]; } It is all connected up with in the, xib and .h but the view doesnot close, it is loaded via this code and loads great: //Initialize the detail view controller and display i...

How to get (x,y) location of the sub-string from Multiline UILabel text (iPhone SDK) ?

How to get (x,y) location of the sub-string from Multiline UILabel text (iPhone SDK) ? i.e. : I am having a multiline label.. Now i want to get origin-location of the substring of UILabel.text? suppose this is my string displayed in Multiline UILabel : "KDDI's 'smARt' television viewing concept links phones to consumerism at long l...

Fancybox problem on iPhone

Fancy box seems to have problems working on iPhone and iPad. Go here http://fancybox.net/blog and click "5. Display login form Try now" on the page in an iPhone or ipad. The form is not center and when you try to enter your details the box moves about the page and makes it unusable. Any fixes? Thanks, C ...