iphone

Problem with applicationShouldTerminate on iPhone

I'm having a problem with applicationShouldTerminate. What ever I do it seams that has no effect. Any help would be appreciated. I'm well versed in programing but this just gives me headache. Im going over some basic tutorials for xcode , as I'm new to mac in general, and am currently looking at a simple flashlight app. It exists but ...

Determining the usable area of an UIView

Hello all, I'm an iPhone dev newbie, and I'm running into a problem figuring out how much of an UIView I'm able to use when the UIViews's controller is part of an UITabController. I'm initializing the window as window = [[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]]; and the view as myView = [[UIView alloc] initWith...

Sqlite3 connect class for iPhone SDK

Is there any common sqlite3 connection class available for working with the iPhone SDK. I realize that it is quite easy to connect and run queries everytime, but to save up more time it would be a real help if we could use a class to handle all the sql directly. I would imagine something which returns a NSMutableArray if you pass a quer...

Problem searching a NSMutableArray

Basically, I have a UISearchBar searching an NSMutableArray of stories that make up an RSS feed, and when you select a story, it loads in my app's UIWebView. It's difficult to explain, but I have a list of entries 1, 2, 3, and 4 and you search for '4'. 4 will be the first entry in the now-filtered list of data, right? You'd think that by...

UIView - draw Images - tile based game

Hello, i am trying to create a simple puzzle game.. and i have an int[8][8] array that reprents the map.. each cell has a value which represents some item. now i want to draw this map on the screen, i have an image file for each item. (each item has the same width and height) i tried to do this with creating a UIImageView for each cel...

Setting an object nil versus release+realloc

This is not a garbage collected environment I have a class instance variable which at some point in my runtime, I need to re-initialize with a different data set than it was originally constructed with. Hypothetically speaking, what if I have an NSMutableArray or an NSMutableDictionary, would it be more efficient to do something such a...

Distributing a development version of an iPhone application

My company has recently started developing custom iPhone applications for various clients. One of the challenges we are running into is how to get these applications to the client so they can review them during the development process. Ideally, this would just be a matter of sending them the app file and having them install it on their...

Software as a Service via the App Store

I want to develop and launch an application via the iPhone App Store. The system will be comprised of a Cocoa-touch native iPhone app plus access to an https web service. The iphone app will be useless without access to the web service. I foresee multiple problems doing this while staying within Apple's terms & conditions: 1 - The paid...

Creating "highlight" like effect on "info dark" button on white background

If I put a "info light" button in the lower corner of my screen on dark background and check "Shows Touch On Hightlight", I get a nice highlight effect when the user touches the icon. It gives the user positive feedback. In my app the background it white. So I selected "info dark" button. The "Shows Touch On Highlight" and "Highlighted ...

iPhone keyboard handling with custom textfield?

Is it possible to create a custom textfield on the iPhone? What I would like to do is have an "alertview" that looks like it fits in with the app design and using an image as the dialog box/alert, not just the standard alertview. So, I'll handle all the graphics and input handling, but how does one pop up the keyboard and deal with inp...

iPhone's Mobile Safari: Special Characters

The iPhone app I'm working on uses html help files and special characters such as ü and ê are being mangled my iPhone's mobile Safari. Anything I can do to correct this? ...

Google Adsense within native cocoa-touch iphone app

My planned iphone application will work a remote https web service quite hard so until a user decides to upgrade from the free to pro version of my app I need to generate a trickle of click revenue per free user. I would like to embed a single line adsense widget within a native cocoa-touch iPhone application. The UI control I have in m...

iPhone Safari: check if URL scheme is supported in javascript?

Is there any way to check if a URL scheme is currently registered on the phone... with javascript? ...

Remove UIVIew from SuperView with Animation

I can animate the addition of a UIView to my app, it looks very pretty so thank you apple. However, how do I animate the removal of this view from the super view? I'm using: CATransition *animation = [CATransition animation]; [animation setDuration:1]; [animation setType:kCATransitionReveal]; [animation setTimingFunction:[CAMediaTimi...

How to get started with implementing my own VGP code for iPhone OpenGL ES development?

How do I get started with implementing my own Vertex Geometry Processor code for iPhone OpenGL ES development, in order to fully benefit from its VGP Lite chip? ...

iPhone SDK: POSTing NSData with NSMutableURLRequest results in mysterious crash

I'm seeing a crash that happens 10 or 20 seconds after a POST request I make has finished (didReceiveResponse, didReceiveData and connectionDidFinishLoading all fire well before the crash happens). This is the code I'm using to make the request: NSURL* url = [[NSURL alloc] initWithString:urlString]; [urlString release]; NSData* reques...

Webkit API for Safari, Iphone

I went to the webkit.org and, honestly saying, the site doesn't provide any tutorial or documentation of the API. I'm looking for what new CSS, and DOM webkit provides. Anyone know where I can find the information? ...

iphone sqlite static linking?

Anyone out there statically linking sqlite (as opposed to using the dynamic linking)? I am having issues with users with jailbroken phones not having the same version of sqlite that the stock iPhone assumes (and hence causing crashes). I'm assuming that staticly linking a known version of sqlite in my app is the answer... ...

How to perform an NTLM challenge on the iPhone.

I'm trying to access some web services in an iPhone application. If I GET to the .asmx page, I authenticate and get the WSDL as expected. However, if I POST to the .asmx page, setting the SOAPAction, Content-Type, Content-Length, and HTTPBody, I just keep getting didReceiveAuthenticationChallenge messages. Additionally, I'm trying to ...

iPhone: Can a dev other than team agent build an app for distribution

Hello, I have a company iphone dev account. According to the doc, only the team-agent is allowed to submit a distribution cert and download the distribution provisioning profile. Can a team only have 1 Team Agent? Also, if that is the case, is there a way around this to allow multiple devs the option to build a distributed version o...