iphone

iphone openGL error: expected '=', ',' ,';' ,'asm' ,or '_attribute_' before 'pyramidVertices'

Hey - just starting out trying to get some openGL into my iphone app and came across this error for this bit of code: static const GLfloat pyramidVertices[] = { 0.0f, 1.0f, 0.0f, -1.0f, -1.0f, 1.0f, 1.0f, -1.0f, 1.0f, 1.0f, -1.0f, -1.0f, -1.0f, -1.0f, -1.0f }; am I not including something I should be? Withou...

UISegmentedControl Changed Event misfires when adding a method inside

Here is my code for the UIControlEventValueChanged event for a UISegmentedControl: - (void)segmentAction:(id)sender{ if([sender selectedSegmentIndex] == 0){ pendingIsShowing = YES; [freeCutsTable reloadSections:[NSIndexSet indexSetWithIndex:1] withRowAnimation:UITableViewRowAnimationFade]; }else if([sender ...

Do iphone apps in development run more slowly than once they are released?

I am new to developing iPhone apps and have been testing on on the simulator and on my 2nd gen iPod. I am seeing lag times in what I believe is simple code. I know that the simulator will always run faster than the hardware, and I know that when I'm debugging, that the physical iPod has to run the debugging program in the background wh...

Connecting to URL from iPhone and persisting php session

I have an iphone app that sends and retrieves data from a php script. I would like to connect to that script once, save some data into a $_SESSION variable. Then on subsequent calls be able to retrieve the content of that $_SESSION vars. Is this possible? Thanks ...

Add parameter to each HTTP request in UIWebView

Hi, I'd like to be able to add an HTTP parameter (i.e. http://addr?myParam=...) to each request created by the UIWebView control in my application. This is easily done when loading the initial page (via loadRequest) but I need to do this for request triggered as a result of user navigation, etc. I noticed that I can capture all requests...

UIScrollView - Input outwith visible area

I have a UIScrollView to which I add a bunch of UIImageView's as sub views. Everything works fine apart from that I get input from the subviews when they are outwith the visible area of the scroll view. I would have thought the scroll view would prevent any events from reaching subviews outwith the visible area by default but I presume t...

What UI Element is This?

Hi, Does anyone know if this is some sort of a styled UISegmentedControl from the Billings app? If so, how do you customize the UISegmentedControl given that there are only Plain, Bordered, and Bar styles??? Thanks! ...

What is the quickest way to validate a postal code as existing on the iPhone?

I have an iPhone application which accepts valid zip codes as input. The input can be quickly validated for format; I am looking for methods to validate whether it exists or not. What is the most efficient way to test whether a given Canadian or US postal code exists, without storing a database of valid codes on the phone? ...

How do I change the table and cell backgrounds to custom images in Interface Builder and xcode?

How do I change the basic table to custom images in Interface Builder and xcode? Interface builder provides a boring white background for each cell. I want it to look more custom. I want to change that into something like this: http://tinypic.com/view.php?pic=51ufwg&s=6 Thank you. ...

Create NSDate Monotouch

I am trying to take a date string and turn it into a specific NSDate (eg. July 1, 1981), but I don't see and methods for setting the date. Does anyone know how to accomplish this? Perhaps convert a DateTime object to NSDate? ...

iphone sdk - reload tableview data - from a separate class

hi guys I'd like to run the code [tableView reloadData], except I want to call it from a seperate class to the view controller I want to reload the data in. (Note. If there is something more effective to reload a tableview than reloadData, chime in). Say the view I want to reload is 'RootViewController', and I am currently in 'DetailV...

How Do I Upload Multiple Files Using the iPhone

I am posting (HTTP POST) various values to the posterous api. I am successfully able to upload the title, body, and ONE media file, but when I try to add in a second media file I get a server 500. They do allow media and media[] as parameters. How do I upload multiple files with the iPhone SDK? ...

Proper AVAudioRecorder Settings for Recording Voice?

I am adding a voice memo capability using AVAudioRecorder and I need to know the best settings for the recorder for recording voice. Unfortunately, I know nothing about audio to the extent I am not even sure what terms to google for. Currently, I am using the following which I copied from somewhere for testing purposes: recorderSett...

What should I consider to ensure seamless port of my iPhone apps to iPad?

Following iPad's announcement and its SDK (iPhone SDK 3.2), porting apps to iPad becomes an important issue. What guidelines I should follow in my iPhone apps to ensure I can port it to iPad as seamlessly as possible? The different resolution is particularly an important issue. While the iPad runs iPhone apps unmodified, it's not really...

NSMutableURLRequest timeout issues

Hello, I'm using Eric Czarny's XML-RPC framework for my iPhone app. There is an XMLRPCRequest class which contains an NSMutableURLRequest object. I wanted to set it's timeout to say 10 or 20 seconds, however regardless of that I always measure a timeout of about 75 seconds. Now according to this post, the standard timeout for POST reque...

Accessing Web Services from iPhone on PC through network

Hi there, I asked a very similar question not too long ago and got some great responses. I've made it pretty far but still can't quite get things to talk. What I have is a PC running IIS and a web service inside of that. I'm trying to get the iPhone simulator on my Mac to be able to see this web service. I can ping my PCs local IP addres...

how to know when NSData's initWithContentsOfURL has finished loading.

I am loading some text from an xml and a image, that image takes longer to load than the text but i want to show them at the same time. i am loading the image using NSData *mydata = [[NSData alloc] initWithContentsOfURL:[NSURL URLWithString:imgLink]]; How can i set a callback function that let's me know that mydata has the image so i ...

What's new in iPhone SDK 3.2?

Apparently it is available (www.apple.com/ipad/sdk/), but I can't find a changelog... Not used to apple.com though. Does anybody have detailed information? What I would like to know is : are there any new API or did they only add iPad stuff? Edit : I am not asking for implementation-level details, I would just like to know the feature...

Run iPhone SDK on iPad

I was wondering if anyone knows if you can run the iPhone SDK on an iPad. Tried looking through apple.com, but didn't find anything useful... I want to be able to develop -- from start to finish -- an iPhone app on the iPad and was wondering if that's possible... ...

Striping Rows of a UITableView

Hello, I've read posts here on SO about striping a UITableView's cells, but have not been able to work out the details. My code is: - (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath { // Setup code omitted cell.textLabel.text = @"Blah Blah"; cell.detailTextLabel.text = ...