iphone

iPhone SDK: Forcing landscape mode for a single part of an app

Yet another landscape mode question. We've all seen the [[UIApplication sharedApplication] setStatusBarOrientation:UIInterfaceOrientationLandscapeRight animated:NO]; Nonsense. I have not been able to get this to work on the simulator or on the device. What I get is this: http://i47.tinypic.com/zl9egh.png when I really want this: h...

ASIHTTPRequest and ASP.NET

Hello, I need to upload files from iPhone to my ASP.NET server and found ASIHTTPRequest to be an easy tool. My question is he server part on the ASP.NET. How do I prepare the server part? ...

Storing data in the app sandbox - what if the user runs out of space?

I am storing some images locally in my app's sandbox. I currently have the minimum set at 10MB, and will be allowing the user to choose how much storage is allowed (up to 500MB). In the scenario that the app is installed on a device where there's simple no space on it, or if there's 1MB space left and I start saving a 2MB image what hap...

How to "reset" to the starting view?

Hi! I have my first sample iPhone application - some version of TicTacToe. It's working fine but only one time %) I cant figured out how to reset my view in game to starting position. I followed Formic game example from "iPhone Cool Projects" book. I create Controller, then View and mark X or O signs in my game via UIImageView which I...

Giving color to the title in tableView in iphone

I am new to iphone development.I want to change the color of the title to brown.In default it is in gray color.To display the title i am using the following method. - (NSString *)tableViewUITableView *)tableView titleForHeaderInSectionNSInteger)section { return @"Title"; } I want to change the title backgound color. please help me ...

How to let a user become a fan of a page through Facebook Connect on iPhone

Hi, I'm creating an iPhone App that uses facebook connect to enable the user to post messages to a specific fan page. I also want to allow my users to become a fan of the page through Facebook Connect but I can't find a way to do this. So: is it possible to create a "become a fan"-button in an iPhone app using Facebook Connect? Which AP...

iPhone SDK: How to send a message from a TextField inside a TableCell to the viewController?

My app has a UITextField inside of a table cell. The table cell is build inside of a TableController class which is the table delegate as well. The TableController is a instance variable of a ViewController class. What I'm trying to do is to send a message to the ViewController instance when the user touches inside the TextField. This ...

iPhone apps: Can I open an app from a link in a website?

I'm a newbie iPhone developer, writing an app that will kind of be the "mobile version" of a website. I'm wondering whether it's possible to launch my app from a link in a website. So, for example, someone goes into our site in the iPhone Safari, clicks a link, and our app launches. Is that possible? If so can I also "pass parameters" ...

iPhone apps: Can I detect whether a user has a certain app installed from a website?

I'd like to use links with special schemes in a website that'll launch an iphone app for a user when clicked (see my previous question for reference). Is there some way that I can detect, in this website, whether my app is installed? (as in, the app that'd handle my special scheme). My idea is to decide whether to show a "install our ap...

Core Data - Backing up to Google App Engine (iPhone)

I am considering backing up data from an iPhone application using the Google App Engine (GAE) - I was also considering using Python to build a RESTful app to deal with incoming/outgoing data. On the client side I am using Core Data to store the information I wish to back up, and retrieve using the GAE. I was wondering whether there we...

morphing in iphone

is there a (simple) way to make a morphing (faces as a typical example) using core animation or openGL? ...

How to distort a Sprite into a trapezoid?

Hello, I am trying to transform a Sprite into a trapezoid, I don't really care about the interpolation even though I know without it my image will lose detail. All I really want to do is Transform my rectangular Sprite into a trapezoid like this: / \ / \ /__________\ Has anyone done this with CGAffineTransforms or...

Detect UISearchBar focus on the text field

Is there a way to detect if a user has click on the searchbar textfield and the keyboard has appear ? ...

Problems launching an NSTimer from a secondary thread

I'm noticing in my code that when I try to start an NSTimer from a secondary thread, it doesn't work. I tried calling +[NSRunLoop currentRunLoop] just in case the problem was that the thread didn't have a run loop...but no dice. (Note that that was a shot in the dark. The docs said that would create a run loop, but perhaps there's other ...

Are download usage statistics available through the iPhone API?

i'm referring to the cellular usage stats in settings->general->usage (documented or undocumented API is ok). I'm also looking for APIs to the wifi statistics as well. ...

If TextFields are empty, then do this for iPhone

I have a simple calculator that works, but my problem is if the user doesn't input any data into the fields then it still calculates. I thought I could do the following: if (txtUserName.text == nil || txtUserName2.text == nil || txtUserName3.text == nil || txtUserName4.text == nil || txtUserName5.text == nil) { //error messa...

Align the text to center in headerlabel in iphone

I am new to iphone development.I have displayed the text in the header label.Now i want to align the text to center. I using the following code - (UIView *)tableView:(UITableView *)tableView viewForHeaderInSection:(NSInteger)section { UIView* customView = [[UIView alloc] initWithFrame:CGRectMake(10.0, 0.0,300.0,44.0)]; UILabel * heade...

Suggestion for getting data from a web server?

I have a web server which contains a list of "interesting locations". These are "hard coded" on the web server, and maintained from an administrator on the server-side. Users can't add or remove anything. From within my app, I want to make a button "fetch locations", and the app should then contact the web server and ask for that "inter...

Getting Search Keyboard on iPhone using PhoneGap

I have created a search field on a mobile app i am creating via PhoneGap. I've tried using with no luck. I also know that i could get around the visual aspect of the input field via CSS & Javascript, however how do i get the Keyboard to have a "SEARCH" button on the bottom right instead of it saying "RETURN" ...

MPMoviePlayerController and MPVolumeView weirdness...

Hello, I have two view controllers. One for a live audio player, which use an MPVolumeView and another controller which is an on demand video player which use MPMoviePlayerController. When I play a video then play live audio, and change volume using MPVolume slider the audio volume overlay (the same when we touch volume control on the...