iphone

What is the maximum sandbox size on iPad?

I'm writing an iPad app that acts as a media player (video and photos). I know there is a 2GB size limit on apps, however is this the size limit on an app when downloaded? Or the limit on the size of your sandbox throughout the life of the app? For example what if my small app later on downloads various media files to its sandbox that pu...

CoreData and UITableViewController Problem

Hi I have a app that works with Core Data. The data has a field with a date and I would like to show every entry of a month in a seperate section. How do I actually get the data ? I use a NSFetchedResultsController to get the data and use this : - (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section ...

iPhone Landscape FAQ and Solutions

There has been a lot of confusion and a set of corresponding set of questions here on SO how iPhone applications with proper handling for Landscape/Portrait mode autorotation can be implemented. It is especially difficult to implement such an application when starting in landscape mode is desired. The most common observed effect are scra...

Is it possible to add a custom image in the info pane in mapkit?

I am trying to add a custom image for the info pane in google map once a user clicks on a marker. I can't find anything in the MKAnnotation class. Any help would be appreciated. ...

UIImageView subclass with CGRectIntersectsRect - help!

The title of this question should be pretty self explanatory. I am making an app that involves multiple UIImageViews that serve the same purpose. They are merely different sizes. Anyway, I decided that the best solution was to make UIImageView subclasses, link the subcalsses in IB, and work from there. My code should explain this be...

Add number of days to a date and calculate the end date?

How can I calculate the number of days from a specific date?in other words add number of days to a date. I looked up NSCalendar and NSdate and could not find anything specific to that regards. ...

iphone annotations pins and buttons

Can anyone help me on how to use the - (void)mapView:(MKMapView *)mapView annotationView:(MKAnnotationView *)view calloutAccessoryControlTapped:(UIControl *)control { method. I am trying to tell the annotation pins on my project appart and I can't figure out how. Every pin has a disclosure button but I can't figure out how the progra...

UIImageView "Sprite Movement" How?

Hi all, I am trying to make a game for the iPhone/iPod Touch. I am somewhat new to iPhone programming and extremely new to iPhone game programming so try to bear with me if this is a stupid question. How to I make my character, a UIImageView, move to the right or left, along the x axis. Just a simple translation across the screen. Th...

iPhone App Shows a white light dot when the iphone is woke up from sleep mode

Hi All, I am not sure whether this is a strange case,but this is the scenario. I open my iPhone app in my iPhone device and i work on the app I Lock my iPhone device and I try to unlock the phone from sleep mode When the unlock is successful, I see a white light of size 3 to 4 pixels in the center of the screen and from that point the...

iphone App to use Shake

Hello, Can someone help me with creating an App which will increase a number counter when the Iphone is shaken. Regards, Vinay ...

How to make a derived UITableVIew work

I've made a new class in my Xcode project which is derived from UITableView I then drag a UITableView from in the interface builder onto my view and change the class of the object to my derived class. Then I drag the outlet from the table to the files owner and hook it up to an outlet variable in my main view, which is of the same type ...

Recommended way to support backward/forward compatibility in iPhone app?

I'm in the early stages of an iPhone app and I have a question. I did some searching but did not find what I was looking for. There are features in iPhone OS4 that I would like to take advantage of, but I would like for my app to also run on 3.X. It looks like I want to develop against the 4.0 SDK and do the following: Create a "wea...

i cannot set the title for my navigationBar

here's my problem. i couldn't set the name for my navigationBar.. below are some i have tried but to no avail. - (void)viewDidLload { [super viewDidLoad]; self.title = @"Food"; } - (void)viewDidLload { [super viewDidLoad]; [self.setTitle:@"Food"]; } - (void)viewDidLload { [super viewDidLoad]; MyTableViewController *myTab...

iPhone noob - setting NSMutableDictionary entry inside Singleton?

Yet another iPhone/Objective-C noob question. I'm using a singleton to store app state information. I'm including the singleton in a Utilities class that holds it (and eventually other stuff). This utilities class is in turn included and used from various view controllers, etc. The utilities class is set up like this: // Utilities.h...

Xcode 3.2 says the version of iPhone OS isn't supported when my iPhone OS is version 3.1.3

I just went through the whole certificate/keychain/provisioning/appID/profile/DNA test process to get my app running on my iPhone. Turns out my iPhone OS was out of date (3.0.1 I think), so I updated it. Now it says The version of iPhone OS on “Stefanie's phone” does not match any of the versions of iPhone OS supported for developmen...

Need advise about compare NSDate

im developing Alarm Clock i want to compare a time now and setTime is it possible to compare in minute only. My Problem is NSDate will compare in second example 9:38:50 are not equal 9:38:00 how can i compare in minute ? is it possible thanks you for all advise. ...

How to convert a video via ffmpeg to an mp4 format that will stream and/or download to iPhone and Blackberry?

I have a site where people upload videos, which are converted to .flv format. Simple. I wanted to also convert to an mp4 format that will "stream" to an iphone and blackberry, or allowed to be downloaded to either, for later viewing. Can someone post a working ffmpeg line to accomplish this task? Closest I got was this (which doesn'...

If NSString stringWithContentsOfFile is deprecated, what is its replacement?

I have some sample code from Tuaw which is probably 3 releases old ;) The compiler is issuing a warning that the method is deprecated, but I do not see that mentioned in the SDK docs. If it is deprecated, there must be an alternative approach or replacement method. Does anyone know what the replacement is for this method? The specifi...

Drawing Mirrored Text

I'm trying to draw mirrored (as in, it looks like you held it up to a mirror) text, and I want to do it the easiest way possible. It is possible to do a transform on a UILabel? Or do I have to use Quartz and do CGContextShowTextAtPoint() ? ...

About hide toolbar in iphone app

I have a navigationController which root viewController has no toolbar,but the root viewController navigates to a viewController which has a always visible toolbar.I must assure the root viewController's toolbar is hidden whether it is presented first or its above viewController is poped in the navigationController stack.So,I use the fol...