iphone

iPhone. Establishing a binary data stream with an HTTP server.

How do I establish an input stream over HTTP for the iPhone? My project is to incrementally pull binary data from an HTTP server to the iPhone. The pattern is to pull some data - this is a scientific app - analyze it for a while, pull more data. Rince, and repeat. This project is a port of a desktop Java app which relies on InputStream ...

Iphone gathering information from a Remote sqlite

I need to write an application which gathers information from an Sqlite db which is located on a remote server, and not on the iphone physically. Can you point me on some examples, documentations on how to figure out this problem. Thanks! ...

iPhone: Base vs' Active vs' Deployment target

I know that parts of this question was asked in several variation but I want to make sure I got it right. Here are my assumptions and understandings which I want to know if they are correct before submitting. My application assumes features supported by all OS, and so I should: Set the Active SDK to be the latest (currently SDK 3.0)....

Unable to run instruments on my iphone app on the device

I'm trying everything i can to get instruments to profile my app on the actual iphone device, but it won't work no matter what i do. I tried the solution from http://stackoverflow.com/questions/379983/does-instruments-objectalloc-leaks-require-the-simulator but that didn't work. Most of the time i get nothing of use from the console, b...

Class NSURLRequest. Method - (NSInputStream *)HTTPBodyStream always returns nil. Why?

I am trying to use NSURLRequest with NSURLConnection to establish a binary stream connection to an HTTP server to retrieve a humungous data file in small, incrementally pieces. I see the method - (NSInputStream *)HTTPBodyStream on NSURLRequest. Is that the method I want to call on my instance of NSURLRequest? If so why does it alway ret...

app crash on iPhone 3G running iPhone OS 3.0.1 and iPod touch running iPhone OS 3.0 and Mac OS X 10.5.8.

Hi all, My application was rejected because it is crashing on iPhone 3G running iPhone OS 3.0.1 and iPod touch running iPhone OS 3.0 and Mac OS X 10.5.8. ,I thought that iPhone apps should be tested only on iPhone . Why they test it on the mac? I had some methods that was deprecated on SDK 3, and apple requires that the app should be...

keeping the selection "permanent" in the UITableView cell

Hello all , I seem to be having a problem in my UITableView clicking behaviour. I'm using a Tree to create a hiearchy of tableviews. My problem arises when I enter the following screen ( I produced some screenshots to clarify ). 1) When I enter this screen http://img129.imageshack.us/img129/4050/samplec.png I can go to my next...

IPhone - UIView addSubview Gap at top

I have a view that is loaded in the MainWindow.xib. It is just a view with a uiimageview in it that shows a image on the entire screen ( 320 X 480 ). When the app loads I display this view and then I do a [self.view addSubview:tabbarController.view]; Tab Bar Controller is just a UITabBarController with 2 View Controllers added to it...

UITabBarController UIViewController View with TabBarCtrl doesn't appear in my ViewCtrl :(

I have MainController class for UITabBarController's view managing. When I try to display my TabBarController from ViewController - it display clear screen. :-( I could display my TabBarController only from __AppDelegate. =) How can I display TabBarController from my UIViewController based view? =) Please help me guys. Thank you a lot...

Can a company publish under an Individual iphone developer license

Hi there, I own a very small legally registered company that comprise of a team of 3. I purchased an individual license early this August under my personal name. We intend to publish our first product this september under my license but have our company name and website displayed in the product. Is this allowed by Apple? Can I publish a...

How can i take an UIImage and give it a black border programmatically?

How can i take an UIImage and give it a black border programmatically? If i can receive code, it will be great. tnx ...

iPhone release build not functioning the same as debug build

My program works the way I want it to on both the iPhone simulator and the iPhone itself when using the debug build. However when I change it to the release build, its works on the iPhone simulator but not on the device. I'm trying to animate a ball across the screen with a timer and the ball should bounce off the sides if it collides wi...

NSInvalidArgumentException

Am tearing my hair out here. Have read many examples which describe how to get around this but none have helped me get rid of the problem. Have a simple button on a UIView linked to an IBAction. Code is this... Contact.h #import <UIKit/UIKit.h> @interface Contact : UIViewController { } -(IBAction)buttonPressed:(id)sender; @end ...

How do you get to work on projects that you're interested in and enjoy working on?

My passion is creating software mostly iPhone or Web and what I've done since graduating( 2 years ago ) has mostly been IT work, which I find boring. I've left a fortune 10 company( about a month ago ) to work for a smaller IT shop so that I would have more time to work on my own stuff. My logic is that as long as I get to work on my ow...

UIImageView showing 'old' image

I have an app that shows a series of UIImageViews on a ScrollView. The app starts by loading a 'splash page' then transitioning to the first image to be shown. The image for the splash page is actually loaded into the UIImageView nib in Interface Builder. The problem I am having is that I am trying to reuse this app for a different set ...

Proper usage of NSInvocationOperation and NSOperationQueue

I have set up an operation queue and an invocation operation. Do I need to signal that the invocation is commpleted? If not how will the operation queue knows the invocation is finished and move on to the next one? The operation queue has been set to execute one operation at a time. ...

Read header files and do something before full photo upload happens

I am passing a GUID as a header and a photo as a body to a php file. The GUID is used to authenticate. If it's not valid, I want to end the call and I do this using die("GUID was expired"); This works fine, but my issue is that the whole photo is uploading before that gets called. This is bad for the user. I want to read the header a...

Command line compiling an iPhone Application

I would like to find a way to compile and package our iPhone application as part of our automated nightly build. At present we always have to manually kick off a build on a shared Mac that has the adhoc certificates installed on the box and then post the resulting test binaries some place where testers can pull them down and install the...

NSString drawAtPoint/drawInRect: Append "..." to truncated string

Hi, I am drawing a NSString using drawAtPoint (drawInRect, that makes no big difference). There is a parameter to set the line break mode, but has anyone an idea how to append "..." to strings if they are truncated? One option is, to check whether the string is short enough. If that is not the case, iteratively remove the last characte...

EXC_BAD_ACCESS on iPhone when using "obj != nil

I've got a very simple line of code in Objective-C: if ((selectedEntity != nil) && [selectedEntity isKindOfClass:[MobileEntity class]]) Occasionally and for no reason I can tell, the game crashes on this line of code with an EXC-BAD-ACCESS. It usually seems to be about the time when something gets removed from the playing field, so I'...