iphone

iPhone MKMapView : the map can’t load completely.

I don't know what's make wrong, my map can load, but the image on the map is not completely load. plx help. thz a lot. Here is the simulate map from the iPhone: (Added more example image.) http://img689.imageshack.us/img689/8476/screenshot20100309at841.jpg Here is the code: MKCoordinateRegion theRegion; MKCoordinateSpan theSpan; theS...

Monotouch UITableView delete row

Hey - I have the following method on my UITableView controller public void RemoveEventFromList(Event evt){ if (_sessions != null) { if (_sessions.Contains(evt)) { _sessions.Remove(evt); } } this.tableView.ReloadData(); } which do...

How to play movie infinite number of times using MPMoviePlayerController class ?

Hi All, Is it possible to play movie again and again using the MPMoviePlayerController class? Thanks ...

How to sync MySQL server database and SQLite database on server?

Hi All, I am developing an iPhone application that retrieves the data from remote MySQL server. As database is huge i don't want to download data each time application runs, rather then i just want to download the data only one time then sync with SQLite database.(No need to download again and again) If there is an update on remote MyS...

How to place a view upon a navigation view controller?

hello, I'm designing UI for iPhone application.How should i places a UIView object upon a Navigation ViewController? Suppose viewObj is the UIView object and uiNavControllerObj is Navigation controllet object?what is the syntax to place viewObj onto uiNavControllerObj? UIView* viewObj; NavigationController* uiNavControllerObj; Edit...

Is there a way to recognize the visit from user's iphone and automatically adjust web page to fit iPhone screen size?

Hello everyone I wonder if there is a way to recognize the visit from user's iphone and automatically adjust web page to fit iPhone screen size? ...

what is the opposite of pushviewcontroller in iphone?

Hi, I m working on one project in which I m calling other viewcontroller in the below way:-- AppDelegate *app2 = (AppDelegate *)[[UIApplication sharedApplication]delegate]; [self.navigationController pushViewController:app2.SecondForm animated:NO]; app2 =nil; My application is navigation based and in which I have created my on back bu...

Geo Spacial Bounding Box Rectangle Calculation Error: Latitude Incorrect

Hi All, Can any trig or GPS experts help me out here? I'm trying to create a geo-spacial bounding box (rectangle) calculation returning the maximum latitude and longitude using the following method that I've retrieved. I am calling the method once for each of the for bearings: north, south, east and west. With these four values I intend...

How can see always selected tableView row? (iPhone)

Hello, I have i problem with tableView selected row. When i select the row it selected, but when i back in the previous navigation controller the row deselected. Can i do that iPhone remember what row was selected and when i push controller it remember selected row and can it be blue? ...

How do I convert a number to hours and minutes?

Hey guys, I got help with correct calculation the other day but I've hit a block about how to implement it into code. -(IBAction)done:(id)sender { int result = (([startHours.text intValue] * 60) + [startMinutes.text intValue]) - (([finishHours.text intValue] * 60) + [finishMinutes.text intValue]); totalHours.text = [NSString str...

Intercept tap on Deletion control in UITableView

Hi I want to intercept taps on the circular Deletion control (example of Deletion Control button) on my TableView to know when the "Delete" button comes in and I can change my cell layout. Can Anyone help me? thanks a lot! ...

A question related to UI Refresh

I have question related to what is done in SMS application is if i'm in inbox and during the reading of message if 1 more message opens then the latest message will be updated and then show it on top how to do it?? can anyone give me code of it. ...

iPhone App with a Server Backend - How to ensure all access is from the iPhone app only?

I don't mind so much about pirating etcetera, but I want to ensure that the backend (Rails based) isn't open to automated services that could DOS it etc. Therefore I'd like to simply ensure that all access to the backend (which will be a few REST queries to GET and PUT data) will be via a valid iPhone application, and not some script run...

How to change back button from text to image in UINavigationBar

UIBarButtonItem *backButton = [[UIBarButtonItem alloc] initWithImage:@"rGoBack" style:UIBarButtonItemStylePlain target:nil action:nil]; self.navigationItem.backBarButtonItem = backButton; [backButton release]; I use this source. but It...

Monotouch MKMapKit - changing default map tiles

Hey I know that in the google maps API it's possible to replace the existing tiles with my own - and using their tile server - feed my own maps. i'm interested in doing this using monotouch - is there any way of doing this atm - or does anyone know of a way of achieving this any other way? w:// ...

Correct way to alloc shared instance (singleton)?

I am looking at singletons and I was curious about the correct way to do the alloc, from looking at the docs, books & web there seems to be a few few methods in use. M1: static ReactorClass *sharedReactor = nil; +(ReactorClass *)sharedInstance { if(sharedReactor == nil) { sharedReactor == [[ReactorClass alloc] init]; } ...

NSThread Problem

Hi i want to start [NSThread detachNewThreadSelector:@selector(Function) toTarget:self withObject:nil] this thread in viewWillAppear event and stops at viewWillDisappear event. I am using code like this -(void) Function { @try { while(1) { pool=[[NSAutoreleasePool alloc]init]; if(!LocalThread) { [pool release]; ...

Make a UITableView disappear temporarily?

Hi Guys, I have a UITableView overlaying over a UIMapView so you can select a specific building from the table and it shows you where it is on the map. Now that is working fine, but when the iPhone is in portrait mode there is not a lot of space to see the map so I am trying to put in a button to make the table appear and disappear as t...

How do I perform a calculated query using CoreData

I have an T-SQL background so this CoreData stuff is a little new to me. I am prototyping an app which will eventually use an MS SQL backend webservice for querying. In my backend my t-sql query would be something like this: SELECT *, SQRT(SQUARE(myX - latitude) + SQUARE(myY - longitude)) Distance FROM Locations WHERE latitude > myX ...

Factoring in night shifts to a working hours calculator.

OK, Thanks to all of you that have helped with my quandry. However, there is one stumbling block - I need to factor in night shifts. For example, if the start time is 13h and the finish time is 2h - I want it to come up as 15h, not 11h. This is the code: -(IBAction)done:(id)sender { int result = (([startHours.text intValue] * 60) ...