I am trying to push an updated version of my sqlite db to my device and so far have not figured out a way to do it other than renaming it each time (painful). The stale (cached?) copy remains permanently on the device.
I understand how to get an updated version into the simulator by clearing the /applications folder, but this does not ...
This seems like a simple task but I can't figure out what's holding my small application back from actually doing what it's supposed to. I am attempting to load a temporary, slide-in, view from another view controller. My application's view controllers are structured:
Application > Tab Bar Controller > TabBarItem > View Controller
In t...
I'm using MGTwitterEngine for an iPhone app. I've managed to get it to send updates but can not for the life of me get it to show the user's friends timeline. (i'm a newb programmer) I was hoping someone could post the code to do so. I can do the formating and link the interface builder to the data source. just need to know how to call i...
I am developing an application in iPhone. One view support orientation in portrait and landscape. I have two separate views for both orientation. This view has a UIToolbar at the top.
Problem is when I change view back from landscape to portrait, UIToolbar at the top disappears. I want toolbar to come back in its original position when ...
Hey guys,
I was wondering how it can be that iterating through an NSMutableArray works, but when I call objectAtIndex it fails with "*** -[NSCFSet objectAtIndex:]: unrecognized selector sent to instance 0x..."
Here is some sample code, the program is too big to share in whole so I hope it's enough. The code is executed in the latest iP...
I'm would like to create a table that displays the date in full for the section headers, eg. @"EEEE dd MMMM yyyy". Then in the the fast user index on the righthand side use the @"MMM" value to provide quick access to a given month.
I can get the index to work using the default value of first character from the core data. So the fetchedR...
I've added a feature to my app that allows the user to save a business's contact details to the address book; however, to guard against adding multiple entries I want to check that the entry doesn't already exist.
Any idea how to do this? The iPhone developer documentation seems a little unclear. I'm using the C api to add the contact.
...
I am creating an application with 3 different languages: english, spanish and french. I have created in-app purchases in these 3 languages and have created users on itunes sandbox for these 3 stores: France, USA and Spain.
Before the user can click on the BUY button, even before the user logs in with his itunes username and password, I ...
Hey guys,
I can't seem to load an image, but I'm sure it is at the path I specify.
Here is the code that tries to load the image:
- (UIImage*) CPPlistImageToUIImage: (NSString *) CPPlistImage {
/*TODO: Is this a memory leak? Find out*/
UIImage * ret = [UIImage imageNamed: CPPlistImage];
if(ret == nil){
RDLogString(@"W...
I want to intercept messages sent to a proxy object by just printing the selector and arguments. Even if the proxy does not implement them and does not have a target object. Please help. I have looked at several options and Apple docs but they assume that you already know the target object. I want to do this cleanly without memory issues...
I have two time values in HH:mm format that I need to compare, and return how many minutes they differ by. For example comparing 18:30 and 19:45 should return 1:15. I've read up on NSDate, NSCalendar, and so on, but I am confused as to how they all work together and how I would create an NSDate with only a time, not an entire date.
...
Is there a way to get XCode to play nice with shared folders and allow multiple people to work on an iPhone app at the same time? Or are we going to need to switch to something more like SubEthaEdit or some other realtime-collaboration tool?
...
I want to programatically zoom in on an Image. I have created a simple UIVIew containing two subviews. A UIImageView and UIView ‘holder’ containing subviews that are basically graphical frames.
The end result is a ‘flickr style’ image view. An image with visible box frames ‘on top’ of the image.
For simplicity I have used a UIImage tha...
I am working on making a search bar above the UITableView, like in the iPod App or Mail app. In the iPod App when you start to type in the search bar the navigation controller disappears and the UISearchBar goes to the top. The animation hasn't been too bad to create, but I want to make sure it behaves exactly like the other search bars ...
I have a TableView that builds and draws ok, but then crashes on scrolling the view. I've run through the debugger and it appears that my class level variables are being overwritten somehow so they no longer exist when the titleForHeaderInSection is being called again. The very strange thing is that if I replace the code:
-(NSString *...
I don't know the best way to let an App restore the navigation controller stack so that the app will re-launch in the same way that it was exited.
...
I have mapkit view and i need to fix zoom step. User must only increase or decrease by 4 times. How i can do it in MapKit?
...
I'm having some problems resizing a UITabBarController as I only want it to take up the bottom half of the screen. It seems to force itself to display the full height of the screen (minus the status bar if showing).
I have tried subclassing it and modifying the controller's view's frame on methods such as viewWillAppear; but it's just ...
A developing consensus among the iPhone developer community is that Apple has recently started using a static code analysis tool to detect use of undocumented API calls.
Just for the sake of the argument, I wonder if it would be possible to work around this tool by generating the invocation at runtime like this:
NSString *const aMethod...
Is there an event when the user presses the standby button?
I can disable "auto standby" (autolock) - which I do because my app is some kind of a routing application.
But how about the standby button?
The problem - if the iPhone goes standby the GPS is turned off. So my app thinks it has a GPS problem. This is in fact wrong - it's onl...