sdk

iPhone SQLite question.

I have an sqlite table that shows scores from different game modes. In one of the columns, I don't want the score to show up unless the user reaches the final 5th level, but I also don't want it to be recorded as a 0 either. I want it to be as if the game was never played. No score recorded at all. Here's what I have.... if(appDeleg...

Selectors with arguments in Obj-C

So basically I have a big list of buttons that's present dropdowns and other things, and these buttons are created dynamically. So to capture the value for the appropriate button's data, I need to set it's action selector to a function that takes 1 extra parameter. For example, using this selector on this dropdown, with the method below...

iPhone UIPickerView in UIViewController

I have a xib in which I have added a UIViewController named delta. The view under delta is controlled by the delta viewcontroller, not the file owner. On the delta view, I have a UIViewPicker. My issue is that I am programming in the UIPickerView in the deltaviewcontroller and I'm issuing deltaviewcontroller as the delegate and data sour...

IPHONE SDK : NSURLConnection asynchronous / wait completion bug ?

Hello all, I am trying to use NSURLConnection in asynchonous mode and wait for completion. During the wait, I use NSRUNLOOP to handle events. Its works in most cases (3G and WIFI) but the application hangup randomly in GSM DATA and EDGE environnement. Anyone can help me ? My code: (void) connectionDidFinishLoading:(NSURLConnection ...

How I do to call a nib file at only first launch of my application?

Hi all, I'm new here but I'd like to learn very well iPhone SDK... I'm making an iPhone app where I'd like to show a modalView controller at launch of my app... How can I do this? In this modalView, I request some informations and the view must appear only when these informations aren't saved! Anyone can help me? P.S.: Sorry for my bad ...

Is there a way that I can make an overlay view on the iPhone SDK?

I've seen examples of overlay views in different iPhone apps (Skype, Phone.app (while making a call), Google Mobile) and I was wondering how I could do the same in an app. I'm making an app which has a record button in it and when that button is pressed, I want a nice looking overlay (similar to the overlay view that appears when making...

How to make an overlay with round edges (iPhone SDK)?

I've just received a lot of good responses to the question about making overlay views. http://stackoverflow.com/questions/2253334/is-there-a-way-that-i-can-make-an-overlay-view-on-the-iphone-sdk Another question I have is how to make an overlay view have round edges like in the Skype iPhone app or in the Phone.app. Thanks. ...

How do I make a button in the iPhone SDK that will look like the UIActionSheet buttons?

In some iPhone apps, I've seen buttons that look similar to UIActionSheet buttons (example: End Call button in Phone.app). I would like one in a UIView that I've made. Is there a way to do this? Thanks. ...

How can I make a UIView glossy and shiny?

I'm coding an iPhone app annd I currently have a View that looks like this: I'm wondering if there is a way to make it shiny and glossy like the Phone.app call screen. Thanks! ...

Workflows for .net 2.0

Exists any good software and sdk to make workflow and use it in c# .net 2.0? My idea is create a workflow using application like visio and next convert metadata from file to a database and populate some workflow tables. I tried use Visio but Interop is very complicated and not work very well. Anyone have a idea or get a free/open sour...

Why isn't my method fully working? (iPhone SDK)

I have a method here that is in my code: -(IBAction) actionButtonPressed: (id) sender{ NSLog(@"%@",actionButton.titleLabel.text); if (actionButton.titleLabel.text == @"Begin Recording"){ [actionButton setTitle:@"Finish Recording" forState:UIControlStateNormal]; [actionButton setTitle:@"Finish Recording" forState:...

Do I need an '@class' declaration in my AppDelegate.h file for every view controller in my project?

Please explain your answers as I've gotten away with not having to do this so far. Thanks ...

What software or service can I use to programatically make phone calls with?

I'm looking to programatically make phone call reminders to customers based upon their opt-in requests. I am NOT a telemarketer. I need to make a phone call, and play a message. I need to leave a message after the beep if an answering machine or voicemail is detected. I need to know if the message was successfully delivered. Ideally, I...

Decimal points in sqlite table?

I'm trying to get a float to show up with the decimal point in my sqlite table. I've included the code below for how it shoes up in the game which is all fine. As well as for what happens at the end of a level. And how it gets updated to the sqlite table. It shoes up fine as a decimal during the game, but it gets recorded to the tabl...

MP3 playback and stop issue?

This code works fine until I exit the view and try to come back into it. If I do this, the stop button no longer works. How do I get it to still work after leaving the view? -(IBAction)musiconButtonClicked:(id)sender{ NSString *path = [[NSBundle mainBundle] pathForResource:@"NextRevIt" ofType:@"mp3"]; self.audioPlayer = [[AVA...

iPhone - NavigationBar Custom Background

I am looking for a way to have a custom navigation bar and need to have a custom navigation bar background to achieve this. I was looking around for how to do this, but could not find a solution. If anyone has the solution, help is much appreciated. ...

How can I call the ViewDidAppear only one time?

When the user start the app I want it show the stockholm.xib and It does here: -(void)viewDidAppear:(BOOL)animated{ [super viewDidAppear:animated]; NSUserDefaults *startPage =[NSUserDefaults standardUserDefaults]; NSString *page =[startPage stringForKey:@"page"]; NSLog(page); if(page==nil) { //Do nothin...

Where can I get fancy red and green UIButtons kind of like "End Call", etc?

Is there any resource for an iPhone developer who wants bright red and green buttons in their app? I mean, as in pre-cut buttons? The closest I've found are the Photoshop templates and those are a bit difficult to cut out just right. Thanks. ...

CGPointMake question for iphone?

I have birds flying within a frame in my game, but I can only get them to fly in two different directions. If there are 2 birds they go in two different directions. If there are 3 birds, 2 of them go in one direction and the other one goes in a different direction. I want the birds to randomly go in four different directions. Up right...

iPhone - Gestures on UIPickerView and UIWebView

I'm making an iPhone app in which the user can do gestures (left and right swipes) to flick through tabs. My problem is that some of the pages have views such as the pickerview, webview, textfields and buttons. The swipes don't work on these. Is there any way to have global gestures? For reference, my gesture code example: //Swipe betw...