How to develop for iPhone OS 2.2.1 with the latest iPhone SDK 3.2.2?
Is this possible? How? ...
Is this possible? How? ...
I built an app with a table view that holds frequencies and other data. I would like to select a row, edit it, and then add the new frequencies info to a new row right below the selected row without deleted the selected row. I'm using core data. Everything works fine using UIBarButtonItem *saveButton method. But it just replaces the ...
Hi, Im currently building a soundboard and I am using the following code to play sounds: NSString *path = [[NSBundle mainBundle] pathForResource:@"hawhaw" ofType:@"wav"]; AVAudioPlayer* theAudio=[[AVAudioPlayer alloc] initWithContentsOfURL:[NSURL fileURLWithPath:path] error:NULL]; theAudio.delegate = self; [theAudio play]; Now this pl...
I have a tabbar with 4 buttons on it. When the user presses the A button I want to call functionA. When the user presses the B button I want to call functionB and so on. I have implemented the UITabBarDelegate. I have this code and it fires as expected when any button on the tabbar is pressed. - (void)tabBar:(UITabBar *)tabBar didSelec...
Hello. I have a ViewController which has a button that when is pressed adds a subview from nib. I have this action: - (IBAction) addTooltip { if (self.tooltip == nil) { NSArray *nib = [[NSBundle mainBundle] loadNibNamed:@"Tooltip" owner:self options:nil]; self.tooltip = [nib objectAtIndex:0]; self.tooltip.fra...
Hi, I am trying to set up a method that creates a .plist file at a given file path, however my current code only works for modifying a plist. Is there an easy way to create the plist file? This is simply a first draft of the method, the final version will take a variable for the course_title. Thanks - (void)writeToPlist{ NSString *...
Hi, I need to get some general information on private API usage (e.g. Apple80211...): Up to now I was in the opinion, that I would need a jailbroken iPhone in order to run apps using this APIs. I'm a bit buffled now, because it seems, that I can create and run apps using it on my iPhone, e.g. directly from XCode. Is it just a matter of d...
Hi, I noticed that now and then my app can't find my database sqlite file anymore. It copies a new one and i am left with an empty database. I also noticed sometimes it switches to a previous database file, and i suddenly see data i filled in another time. I think and hope this has something to do with the iPhone Simulator and not with...
Anybody have any good pointers on how to be able to, say, highlight a ivar in a class and hit a keystroke and insert the property and synthesize lines into my code in the proper places? I have been doing this for awhile now and typing that boilerplate stuff is getting on my nerves at times. ...
I have this code - (void)tabBar:(UITabBar *)tabBar didSelectItem:(UITabBarItem *)item What I am looking for is a code snippet that illustrates how to detect which button was pressed inside the delegate presumably using item. So maybe I have buttons 1 - 4 lined up on the tabbar. My user presses the button position 2. I need to know that...
I'm looking for the Tick and draw method, and I'm not sure where they are. Do I have to make them from scheduler, if so how? I've heard that the draw method is only called 4 frames per second when 'paused', so does it exist somewhere? ...
Hello, I am working to force a view into landscape mode, and have picked up all kinds of cool tips to make this happen, but am stuck on one item that is left on the screen. I have my XIB file laid out in landscape, and in my code I create the view controller normally: RedeemViewController *aViewController = [[RedeemViewController allo...
I need to copy a few files into the App's Resources directory during debug builds. I am thinking about using build rules but don't know how to determine if the build is a debug build. I do have a compiler option of "DEBUG" set. ...
I'm trying to port a game library over to the iPhone. Unlike SDL, this library doesn't take full control of your main() function, it's communicated with via quickly-returning functions from your own code. So, for example, obvious pseudocode: int main() { library_init(); // game init code here while(we_have_not_quit_the_game) { ...
CATransition *animation = [CATransition animation]; [animation setDuration:0.5]; [animation setType:kCATransitionPush]; [animation setSubtype:kCATransitionFromBottom]; [animation setTimingFunction:[CAMediaTimingFunction functionWithName:kCAMediaTimingFunctionEaseInEaseOut]]; [animation setDelegate:self]; [[self layer] addA...
I am writting a django app and Iphone app, I need to keep them in sync. Users can delete, update and create new objects in the web app, and in the iphone app. When they get online with the iphone both app must be in sync. Is there simple way to do this? Thanks, Joaquin ...
I have a CustomersViewController with a table view of customers. Click on a customer (didSelectRowAtIndexPath) and a OrdersViewController shows a table view of orders for that customer. I have test data in a NSArray to test with for now. However, at some point I'll need to do a call to a web service to get the order data. In which contro...
I have a MKMapView. Sometimes after my view controller is dismissed, I'll get a EXC_BAD_ACCESS. I turned on NSSZombies and it looks like the MKMapView's delegate — my view controller! — is being called, despite both the MKMapView and UIViewController subclass being freed. I've checked, and my memory management is correct. What's going ...
Just doing a normal HTTP post with a NSMutableURLRequest and sendSynchronousRequest. But the NSHTTPURLResponse object I pass in has a statusCode of zero after the call. I get this error: Error Domain=NSURLErrorDomain Code=-1012 UserInfo=0x4d3b3c0 "Operation could not be completed. (NSURLErrorDomain error -1012.)" but no status code. ...
I've been using transformable attributes in core data to transform complex objects like images and colors into raw data. I took this... The idea behind transformable attributes is that you access an attribute as a non-standard type, but behind the scenes Core Data uses an instance of NSValueTransformer to convert the attrib...