iphone

how to create a page to display information like About on iPhone with some fields have Disclosure indicator?

i would like to know how to build a screen that looks exactly like the About screen on iPhone. I would like to display information in such format.. its so clean.. any ideas? ...

[[UIScreen mainScreen] bounds] returns null?

When I try to get the bounds of the main screen with [[UIScreen mainScreen] bounds], it returns null. I've tried with [[UIScreen applicationFrame] bounds] as well, still returns null. The strange part is; if I do "NSLog(@"%@", [UIScreen mainScreen]);" it prints out the correct bounds, albeit I have no idea how to parse it, if it's even p...

Use of setApplicationBadgeString on iPhone SDK

I am developing a piece of code which where I would like to dynamically update the badge of the application, so show its status. Pretty regular. I am using this following API [[UIApplication sharedApplication] setApplicationBadgeString:@"x"]; My problem is that when I try to use this API multiple times within an application session,...

Testing multiple iOS versions in Simulator

How can I test multiple iOS versions in the Simulator? I can only seem to test iOS 4.1. I would like to be able to test 3.x versions in the simulator as well. ...

uiviewcontroller don't respond

Hi all, I have a view, with a navigationBar on top. I add a subview in this view. My subview is a view with a toolBar. SecondView.frame = CGRectMake(0, 418, 320, 42); [principalView addSubview:SecondView]; [principalView bringSubviewToFront:SecondView]; After that, the subView is in my principalView, at the right place, but when I c...

[NSString stringWithFormat:] losing my string

Hey I'm having a problem with a string creation and comparison that seems to lose it's contents. Currently I have this: switch (creditPos) { case 0: [creditCart.faceImage setImage:[NSString stringWithFormat:@"%@credits_face1.png", _director.platformPrefix]]; break; case 1: [creditCart.faceImage setImage...

Updating Sqlite DB on iPhone Applliction

Hello, i'm developing an iphone app that uses local Sqlite3 DB; i would like to add an "Update data" menu voice that checks whether a new sqlite db version is found on my site and, if true, downloads file to the device. Data can change very often, so i'm asking if it is possible in some way without passing from the AppStore. If yes, how ...

Sorting an NSArray of NSDictionary

I have to sort an array of dictionaries but I have to order by an object in the dictionaries. ...

Creating a NSPredicate with a "contains[cd]" constraint programmatically

Hi, it is possible and rather easy to create a NSPredicate from a string that uses the contains operator, like this: [NSPredicate predicateWithFormat:@"name contains[cd] \"Hello!\""]; I would like to create this predicate programmatically, as it can be done for comparisons with the NSComparisonPredicate. Any ideas about this? My mot...

Changing Core Data Items crashes App

Hey Guys, I am running into another problem with my Iphone App which I just can't solve myself. I implemented a kind of organizer functionality in my latest app. There one can create appointments which are displayed in a tableview and persisted in a CoreDataStore. I use 4 classes: an overview where appointments are displayed a view ...

Flash CS5 on iPhone - developing client/server data apps

I am looking to develop basic client server data application to add value to a website. The website is .net based and opening an api such as asmx web service, json or xml would be simple. Can anyone tell me what are the limitations - technically, what is possible with flash and also what Apple consider to be good practice. Does anyon...

NSURL is nil when using NSDate

Hi guys, I have an NSURL which contains a URL and a variable that is an NSDate: NSURL *url = [[[NSURL alloc] initWithString:[NSString stringWithFormat:@"http://www.googlebio.com/xml_test.aspx?date=%@",self.storeDate]] autorelease]; I also tried it this way but to no avail: NSString*string = [NSString stringWithFormat:@"http://www.go...

CLLocation Category for Calculating Bearing w/ Haversine function

I'm trying to write a category for CLLocation to return the bearing to another CLLocation. I believe I'm doing something wrong with the formula (calculous is not my strong suit). The returned bearing is always off. I've been looking at this question and tried applying the changes that were accepted as a correct answer and the webpage i...

How to convert today's date into Day of the Year for iPhone?

I am trying to do this in Xcode... Today's Date = Day of the year October 13th = 303 (I think) January 1st = 1 December 31st = 365 NSDate to get todays date, then I'm out of idea =( ...

UIImagePickerController preview screen

In my UIImagePickerController I have set allowsEditing to YES. Now I always see the preview screen and the image returned is always "edited" (image within the rectangle is returned). Is there a way to allow user to use original image instead of the edited image sometimes. Also, is there a way to "zoom in" the original image so it fits in...

Copy system file to my bundle

Hi, with iphone SDK 4.0 i want to use some system sound files eg /System/Library/Audio/UISounds/dtmf-0.caf I was thinking it is best to have this in my own bundle but how to copy it to my bundle. Thanks ...

animating a button with delays - iPhone

I'm trying to have a button move to a co-ordinates, pause, move to another co-orinates, pause, then move again. the process should then repeat infinitely. what I have right now just moves the last step. this is what I have so far ('mover' is the UIButton name): - (void) firstAnimation { [UIView beginAnimations:nil context:NULL...

MKErrorDomain error 4 iPhone

I keep getting this randomly when I run my gps app I'm building. It doesn't happen everytime, and the coordinates passed in are always valid (i nslog them). Is there documentation for these somewhere? EDIT: CLLocationCoordinate2D coord = CLLocationCoordinate2DMake(locManager.location.coordinate.latitude, locManager.location.coordinate....

Playing Sound in Table view

Can anyone guide me on how to play sound .caf file in table view.Just like the Apple voice memo app.NCH Pocket Dictate App also implements this feature same way.I think it's pretty good from usability point of view and better use of UITableView. My App stores user recorded voice.The list of recording is displayed as UITableView.I dont w...

Best Logger for cocoa

Hi guys Can anyone recommend me a good logger for cocoa, something that should be in par with log4j. I've been developing this app in cocoa & as the source code is growing I find my self craving for a logger. I've googled a bit, have found a few options but I am looking to hear from you guys & your experiences with these loggers. I l...