iphone

Best way to trace a letter on iPhone

Want to create an app where a child would trace a letter with their finger as they learn to write the letter. I would show a letter on the screen say "b" and at the top of the "b" there would be a small arrow which the child drags top to bottom and along the curve on the right. As the tracing occurs, the color of the letter changes fro...

StoreKit to return all product IDs

This question is a little different from the others I've found here. My In App StoreKit is working, I can list products in my store successfully. I've gone through the Apple documentation and never saw my question addressed(I may have missed it). My client(non-profit) would like to be able to accept donations through their App. I would...

Getting iPhone Documents Directory. Is NSSearchPathForDirectoriesInDomains still the only way?

Is the NSSearchPathForDirectoriesInDomains function still the best way to get the path of the iPhone Documents directory? I ask because most topics I see on this are dated last year, and it still seems like a pretty cumbersome way of getting to a directory that is used commonly on iPhones. You'd think that there'd be a convenience meth...

How to keep me logged in with facebook connect on iPhone?

Hey, I am using facebook connect sdk for iPhone, every time I start my app and click login, there would be a login screen asking me to input my name and password. Is there any way to keep me logged in once I input my name and password, that's to say, I needn't to input my name and password again the next time I start my app? ...

Cocoa-Touch. What is the semantic difference between class method init versions alloc/init?

Could someone please clarify for me the semantic difference between these two: self.foo = [NSMutableDictionary dictionaryWithCapacity:theCapacity]; self.foo = [[[NSMutableDictionary alloc] initWithCapacity:theCapacity] autorelease]; Are the interchangable? If not how exactly do they differ. Thanks in advance. Cheers, Doug ...

Advice on speeding up OpenGL ES 1.1 on the iPhone

I'm working on an iPhone App that relies heavily on OpenGL. Right now it runs a bit slow on the iPhone 3G, but looks snappy on the new 32G iPod Touch. I assume this is hardware related. Anyway, I want to get the iPhone performance to resemble the iPod Touch performance. I believe I'm doing a lot of things sub-optimally in OpenGL and ...

exit a view on iPhone

how do i programmatically exit a view in an iPhone app ...

how to append from NSMutableArray

hi experts, i try to append from NSMutableArray but the below exception, actually first 2 loop its giving result but the 3rd loop giving this exception 2009-12-04 12:01:19.044 AppBuzz[14562:207] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '*** -[NSCFString appendString:]: nil argument' 2009-12-04 ...

Strange Problem with UIDatePicker in ActionSheet - Below that Selection indicator I can't select anything, It's become like disabled

Hi, I am implementing datepicker with Action Sheet with the following code : -(void)popupActionSheetWithDatePicker { UIActionSheet *sheet = [[UIActionSheet alloc] initWithTitle:nil delegate:self cancelButtonTitle:nil destructiveButtonTitle:nil otherButtonTitles:@"Done",nil]; UIDatePicker *picker = [[UIDatePicker alloc] init]; self.dat...

Why the height of main window is 480 instead of 460 with status bar

Shouldn't it be 460 when the status bar whose height is 20 is shown? So it turns out that the status bar is ON the main window instead of ABOVE it? In contrast, view height is set to 460 in IB when status bar is turned on. ...

Is this a tableView issue or a CoreData Issue

I have a CoreData-driven navigation app and I'm trying to figure out why It's crashing. I've got a hierarchy which is 3 view Controllers deep, all related by coredata relatioships, like this. TableViewA =relationship= TableViewB =relationship= TableViewC I'm honestly a novice at core data and I think my problem lies in the fetched res...

2 Developer Licences -1 iPhone

Hello, can i develop with 1 iPhone on two developer Licences,... best regards, Andreas ...

Architecting a Complex iPhone Application ?

I am comming from an enterprise java development organization where we did development in nicely seperated re-usable layers. Persistency layers, Service layers, etc etc. Now, I am looking for iPhone example apps or documentation on how to architecture complex iPhone projects. Most books & apple examples show you very limited code & arch...

Debugging iPhone CalDAV interactions?

I'm trying to connect my internal CalDAV server to my iPhone but am running into issues. The CalDAV account is recognized as valid on the "Mail, Contacts, Calendars" settings page, and I can see activity on my server where (as far as I can tell) valid XML is being sent to the device, but none of these events are showing up in the Calend...

iPhone Crash Catching Options on Published Apps

I am wondering about embedding the CrashCatcher framework (http://code.google.com/p/plcrashreporter) in a production app. I have written some code that will upload a crash report directly to a server. And, my intent on this was to have quicker access to crash reports and not need to go through Apple/iTunes to get them. Does anyone know ...

How to make the scrolling stop when I take the finger off the UIScrollView?

I want the image to move only when i am moving it. When i swipe and take the finger off, it shouldnt move on its own. How can i do this? ...

How to initially select a row in UITableView

I can not find a good spot to call selectRowAtIndexPath:animated:scrollPosition: to INITIALLY select a row in UITableView. Table data have not been loaded when the table view controller is initialized, so I can't do selection immediate after the initialization of my UITableViewController(Over bound exception would occur otherwise). ...

How to create a UIScrollView of infinite scrolling?

I have a UIScrollView of size 320*460 and with content size 1024*1024. I can place 25 images of 256*256 in it with the 13th picture shown at the centre of the screen when it loades with bits of surrounding pictures around it. When i swipe to any side I want it to appear just like the mapView. With new images appearing and showing. Ho...

Touch event in UIImageView

Hi, How can I determine what UIImageView I touch in the screen? Like for example, I added 10x10 tiled UIImageView in a UIView. Now in touchesBegan, how can I know the image I touch in screen? Should I use hitTest method in this implementation? Thanks. ...

Game crashes on the actual iPhone but simulator? memory problem?

Hi everyone I have built my first game using Cocos2D. It worked fine on the simulator. But when it runs on the actual iPhone, it crashes. I don know why. Thought it was memory leaks, so i tried to detect, but no leaks found. I tried to increase and decrease frame rate, neither both succeeded. Anyone experienced please help me out. I am...