iPhone | How do I create a unique key from an NSTimeInterval?
I need to convert an NSTimeInterval into a unique key. What is the best practice for doing this? Thanks, Doug ...
I need to convert an NSTimeInterval into a unique key. What is the best practice for doing this? Thanks, Doug ...
Having problems with out of scope for NSDate in an iphone app. I have an interface defined like this: @interface MyObject : NSoObject { NSMutableArray *array; BOOL checkThis; NSDate *nextDue; } Now in the implementation I have this: -(id) init { if( (self=[super init]) ) { checkThis = NO; array = [[NSMut...
How do I use touchXML to parse this XML? I want to store all the attributes as key/value pairs in a dictionary. <Player PlayerName="Padraig HARRINGTON" CurrentPosition="1" CurrentRank="1" Country="IRL" NumberOfHolesPlayed="18" ParRelativeScore="+3"> <RoundScore RoundNumber="1" Score="74" /> <RoundScore RoundNumber="2" Score="68"...
I need to create a key for an NSMutableDictionary. The ideal key would be the merger of a pointer and an integer. This will work for just the pointer NSValue *key = [NSValue valueWithPointer:somePointer]; How do I add together somePointer + someInt and then form a key from the result? Thanks, Doug ...
I would like to have each UITouch instance record a single tap. In other words, regardless of how close multiple taps occur in time, I would like them each to create a unique touch instance. Is this possible? Thanks, Doug ...
I have found the UIScrollView's zooming mechanism to be clunk and essentially unusable. So instead, I'm rolling my own. I have a UIView that resizes itself with the pinch-zoom, and that's working fine. When the zoom is complete, the view needs to reset its transform and redraw the images. The zoom works essentially in the same way th...
We have an industrial app that currently runs on a very expensive ruggedized PDA. Since most of the engineers we sell to have iPhones we are considering moving to the much nicer newer platform. A couple of questions: Is it possible to sell iPhone apps with out the app store? Apple taking a 40% cut of a 99c iFart app is one thing but thi...
Hi, I am using this to add a text box and a button as a subview of label pLabel. [pLabel addSubview:pTextbox]; [pLabel addSubview:pButton]; [self.view addSubview:pLabel]; When I run the application, I see both of them, but the text box or the button no longer responses to my touch. Could you please let me know how can I fix this?...
I am having a hard time consuming a very simple (Hello World) WCF web service in my iPhone app. From what I have read, you must manually create the request message then send it to the web service URL. I was able to accomplish this on a .asmx web service, but not with a WCF service. How do I know the correct format of the request SOA...
Hi, In my app, I am using the following undocumented feature: UIAlertView *alertView; [alertView addTextFieldWithValue:@""label:@""]; UITextField *textField = [alertView textFieldAtIndex:0]; Is it ok to use to have my application approved for distribution? Or I should replace this code? ...
I just released a free version of a paid app store application, and I would like the paid version to replace the free version on install. During testing I had this working by giving them both the same app id and signing them with the same certificate. When I submitted the new free version to Apple it would not let me use the existing a...
In one of the views I launch programmatically, I see 5 different calls to 'loadView/viewdidLoad' but I don't understand why this many are getting called. Can someone explain to me the mechanics behind this? I launch the view in the parent UIViewController (part of a TabBar + NavigationBar application) instance in the following manner: ...
I'm going to do something I never thought I'd do... learn how to program for Apple hardware . After working in C, C++, C#, .NET, and even in the golden days of DOS (a little DOS4G/W memory extender in Borland Turbo-C, anyone?) and even as a kid, playing around with Atari 8-Bit Turbo-BASIC, I feel a little traitorous on multiple levels ...
I have a feeling I've botched the design of my app from a high level. Right now, I have one Controller, the App Delegate, Two UIViews (one is a subclass of Scrollview) and one nib for the controller. In IB, I have set the class of the file owner to MusicGridController and then set the class of the UIView to MusicGridView. Thus, the...
Have a simple iPhone app with a single UIViewController and two Views in one xib. the first view is very simple with a button and upon button press the second more complex view is loaded via setting the view property on the controller. what I would like is to animate the view swap (flip the views). The samples I have seen all require...
I have a UIView as a subview of a custom subclass of UITableViewCell. I'm using it to change the color of just a small area of the cell dynamically. When I select the cell, the background color of the entire cell -- including the background color of the subview -- is changed to blue. That's fine, it happens instantaneously. Selection...
Hello, I'm building an app which includes a number of image sequences (5 sequences with about 80 images each). It runs nicely in the iPhone simulator, but causes my iPhone to reboot when I test it. By the way, each png image is about 8k in size. Has anyone successfully built a similar app? Am I using too many resources for the iPhone to...
Is it possible to actually use the Xcode debugger when running an iPhone app on the device rather than the simulator? i.e., can I have the device stop at breakpoints that I set in my code and step through the code as it runs on the device? EDIT: I should mention that I am a registered developer with Apple and have a valid certificate. I...
I am an iPhone newbie just starting to develop a new iPhone app, and I am wondering if it is better to stick with the 2.2.1 SDK right now or should I actively use features of the 3.0 SDK to build the app? Of course it needs to eventually run on both 3.0 and 2.2.1 devices, so I need to test it on both. But the question is whether there ...
How can you have a UITableView where the header view remains stationary, but the rows don't overlap the section header? With my table, when scrolling the rows, the header is stationary, but when scrolling, the rows slide under the section name. Is it possible to have the rows scroll without going under the section header? ...