iphone

Detect touch *anywhere on the screen* in cocos2d?

I'm really sorry, I realize there have been several questions asked about cocos2d touch detection (including this answer which helped me a bunch), but I just can't get any of them to work. I would have commented on the answer I linked instead of asking my own question, but i don't have enough rep to leave comments. All I want to do i...

Acceptable (by ) HIG friendly approach to temporarily highlight a UILabel

I'd like to draw attention temporarily (±1 sec) to a value in a UILabel when a user changes something elsewhere on the screen. I know Apple is pretty particular about what and how people add "pizazz" to their apps...and for the most part I think it's for good reasons but in my case I feel my UI would really benefit from a subtle animated...

How to set the touch down event of UITextField programatically in iPhone.

Hi, I have a UITextField which I am adding programatically. I want to set the touch down event of that UITextField, that is when user clicks on the textfield second time it should resign from being first responder. THat means the key board should disappear. ...

How is the UIView integration with Core Animation? Layer hosting or layer-backed views?

I am not very sure, but I would bet on layer-backed views. That is: Layer-backed views use Core Animation layers as their backing store,freeing the views from the responsibility of refreshing the screen. The views need to redraw only when the view content actually changes. Or is it the other method of integration? ...

iPhone/Android Dev for Pocket Change?

Hi folks, First the disclaimer - I've read a bunch of posts already on making money with mobile app development, and I'm not sure I feel encouraged or discouraged at this point :) I understand the very real "Gold Rush" mentality of the iPhone and Android apps... Here's my situation: I've coded professionally solo and on teams for abo...

Scaling not as smooth in 3.0 as in 2.x

I have a CATiledLayer backed UIView that is added to UIScrollView and it is returned as view to be scaled in response to -(UIView *)viewForZoomingInScrollView:(UIScrollView *)scrollView delegate method. Now the problem is that scaling on a scale falling between the 2x steps provided by CATiledLayer (like for example 1.333) results in v...

How do you control action sheet animation direction

As noted in the Apple developer docs for showFromTabBar, it says: The style of the animation depends on the style of the toolbar, not the receiver. When I use this method as opposed to the showInView method, it slides in from above, not from below. I am using showFromTabBar because if I don't, the cancel button is partially untouc...

Hiding TabBar Item.

Hello, I have an application where I have a TabBarController with 4 tabs init, When you click the button on the front view(Which is the first tab), a view is uploaded in the navigation view. Now I want to use the UIImagePicker Controller to take a picture and save it in this second view. When I do so the modal Controller is loaded but ...

Change text in GKPeerPickerController

Is it possible to change the default text (something like "looking for other iPhones and iPod touches") in the GameKit's GKPeerPickerController? I've seen solutions that are completely custom but I was wondering if i can avoid that hassle and just change the default text. ...

iPhone App Crashes on Launch Due to Inconsistencies?

Something really weird has happened to my source code. The application always built successfully, and I always used to be able to launch the application. However recently, the app crashes when I launch it and return the following error in the console: 2009-07-23 20:30:06.390 App[15652:20b] Database Successfully Opened :) 2009-07-23 20...

iPhone Game Development

I am starting iPhone Development, I have already made 1 app with c and objective-c, but the reason why i started was to make games for myself... What is the best language for beginners to make iphone games? I know there are a bunch of options, but which would you suggest for a beginner? Thank You -Techy ...

Best Security Framework to secure and authenticate an iPhone app which uses REST?

I built an iPhone app which transfers data via a REST web service (Jersey) via JSON objects to a Java middle tier back end... Question(s): (1) What is the best way to secure the login / authentication of this iPhone App? (2) Is there an open source or commercial framework used to acquire this type of functionality? So far I have com...

NSSearchPathForDirectoriesInDomains trouble (losing hair fast)

Hello. I am getting bald quite quick and need help! I am writing an app which needs to access directories. I was hoping to get a path of the form /Users/me/Library/Application Support/iPhone Simulator/User/Applications/6958D21C-C94B-4843-9EF1-70406D0CA3A3/Documents. However my app is giving me /Users/me/Library/Application Support/iPho...

Trying to add a index to the iPhoneCoreDataRecipes sample code

I've been trying to add a index to the iPhoneCoreDataRecipes sample code and I'm having no luck. Any ideas? ...

Images and Caching - same image after name change

I've got a mysterious problem with images and caching. In my project I've got 20 photos that elegantly fade in and out with a random function that changes up the order a bit. I found that I didn't like one image in particular, image_1.png and wanted to push it back in the rotation (each time the app starts the images start with image_1...

How do I create an HTTP connection and log in on the iPhone?

I am trying to log in to my website (www.trailbehind.com) and then send a POST request to upload a file. I tried implementing some code just to request the home page without authenticating, which I found here: http://developer.apple.com/documentation/Networking/Conceptual/CFNetwork/CFHTTPTasks/CFHTTPTasks.html#//apple_ref/doc/uid/TP3000...

iPhone app Preferences Reference

Is there a better resource than the following link for programming the preference pane for an iPhone app? http://developer.apple.com/iphone/library/documentation/PreferenceSettings/Conceptual/SettingsApplicationSchemaReference/Introduction/Introduction.html#//apple_ref/doc/uid/TP40007005 Side question: can the bundle version be automati...

iPhone - access XAMPP server (localhost) on my mac in the same network

Hi I want to create an iPhone app which makes calls to a web service. For testing, I want to first create the API calls on my mac (server running XAMPP) and if it works fine there I want to port it to the actual server. If my iPhone and mac are on the same network, can I access the web service using the IP address of my mac? Thanks. ...

How to pass username and password to a web service from within an iPhone app?

Hi All, Have a look to this code snippet:- CommonService objcommonService; NetworkCredential myCredentials = new NetworkCredential("144552", "F@mous123456"); objcommonService.Credentials = myCredentials; This is a C#.net code. In this snippet "objcommonService " is a object of the webservice "CommonService". This webservice pre auth...

Does iPhone OS support implicit animation?

Example from Mac OS X: [[aView animator] setFrame:NSMakeRect(100.0,100.0,300.0,300.0)]; I have tried something similar in UIKit, but it seems the animator method is not there for UIView. So there's no "implicit" animation? ...