How do I store an plist on iPhone?
I want to store some user settings like selected image, etc. How could I do that with an plist? ...
I want to store some user settings like selected image, etc. How could I do that with an plist? ...
All of the examples I can find of setting up a notification look like this: [nc addObserver:self selector:@selector(keyboardWillShow:) name: UIKeyboardWillShowNotification object:nil]; where object is always being set to nil. object is the notificationSender, which is defined thusly in the documentation: "The object whose notification...
This problem is simple, but crucial and urgent. Here's what needs to be done: load 66px x 66px images into the table cells in the MainViewController table. each TableCell has a unique image. But how? Would we use cell.image?... cell.image = [UIImage imageNamed:@"image.png"]; If so, where? Is an if/else statement required? Help...
I started programming with an View-based Application Template. Now, I figured out that I will need more Content Views (I.e. settings pages, statistics page). I don't really want to make a new project in XCode and struggle around with porting my nib file to that new one since it is pretty complex. I would just want to add that Content Vie...
How can you insert a file data(png) to col in SQLITE3 on osx (command line) and what is the better type to use as a container? blob or binary? ...
Problem: I have a set of images, lets say 5. There is an structure that defines an "image object" in the meaning of my context. Every such image object has this information: name, of the image file (ie "myImage.png") xOffsetPx yOffsetPx width height The images are supposed to be shown on very specific positions in an view, so I need...
I want to animate the position of a CALayer based on a CGPath, but I want to play it backwards. Is there any way to animate a path backwards, or reverse a CGPath? ...
Hello, I have a problem for changing the displayed view. My app contains 2 views controllers. One audio player and 1 about. The Audio view controller is never released and the second is released when the audio viewController push. My app also has an AppDelegate object which is shared by all UIViewControllers. AppDelegate Class contain...
I've seen some good information (on this site, especially) on how to place a toolbar on top of the keyboard when it is in view. But what I really want to do is make my toolbar a subview of the keyboard, with a frame such that it sits on the top edge of the keyboard. To do that, I would need to have the pointer to the keyboard itself. ...
I've got 4 different iPhone/Cocoa/Core Animation/Objective-C books in front of me, along with numerous sample code from the web. Yet somehow I still feel like I'm missing some fundamental understanding of how drawing works in Quartz 2D. Is drawRect() meant to simply be a hook in which to execute your drawing code? Or is this method s...
Specifically, I'm trying to deal with the bug where, pre-2.2, UINavigationControllers with translucent navigation bars affect their subviews as if they weren't translucent; i.e. they position them too far down. So I need to know what to test in order to perform "if this build is against a pre-2.2 SDK, fix the view positions." ...
Hi How can I save the current state of an audio file currently being streamed by my app. I want to start the song at the same place where the user left it (something like what Pandora does when listening to a song) Right now I am getting the packet number being played. From the packet number I get the byte number and send it in the Ran...
how to work with z coordinates in a texture in iphone openGl. ...
Hi, I was looking forward to find a cause for my application being crushed at some point and I found out that methods of UITableView are being called before or at the same time as viewWillAppear is called. In viewWillAppear I have code that is initializing number of rows in each section but numberOfRowsInSection is being called before I...
Hi, I cannot find a problem in my code. At some point it is throwing an exception. When I am showing a view and after that it is being disappeared (going to another view) and after that entering the previous view again it is throwing an exception which I cannot understand. And when I am scrolling my tableview sometimes an exception is b...
I'm looking for an complete tutorial which not just tells me how an query is executed, but also how I set up the whole thing including setting up the library, creating an database, and so on. ...
I have a UITableViewController inside of a UINavigationController. I want to have a UIView appear over the top of the table view but not susceptible to the scrolling of the table view. I.e. if the table view is scrolled, the UIView should remain in the same position relative to the screen, rather than relative to the table view. It sh...
Hi friends, i created a UITextField of type rounded textfield, using Interface Builder,so in order to set the Height of a textfield its window was disabled(not to set any height manually) in SizeInspector.so if we want to set height manually,what procedure should we follow. One thing i would like to mention is ,we can do that in coding...
Hi, when I try to release a dictionary I get an exception. Here is my code: - (void)viewWillAppear:(BOOL)animated { [super viewWillAppear:animated]; if (!tableDataDictionary) { DebugLog(@"initializing tableDataDictionary"); tableDataDictionary = [ [NSMutableDictionary alloc] init]; } } -(void)viewWillDisappear:(BOOL)animated...
I want to show users what their square flat .png image will look like when converted to a normal 'shined' icon by the app launcher. e.g. round corners and glassy effect. Thanks ...