Tuesday, 4 December 2012

Ddvice Testing Full Video

Yutube---http://www.youtube.com/watch?v=dUdHifLTyrE

Videos For Testing And Distribution

 Ad-Hoc Testing ---    http://www.youtube.com/watch?v=gRhtsnFB0bM

iOS: Creating an Ad Hoc Provisioning Profile and Distribution Certificate‬

http://www.youtube.com/watch?v=XVO0tIHmQTg

Sunday, 2 December 2012

Restoring iOS software

Try restoring the iOS device if backing up and erasing all content and settings doesn't resolve the issue. Using iTunes to restore iOS devices is part of standard isolation troubleshooting. Restoring your device will delete all data and content, including songs, videos, contacts, photos, and calendar information, and will restore all settings to their factory condition.
Before restoring:

Restoring your iOS device

  1. Connect your device to your computer.
  2. Select your iPhone, iPad, or iPod touch when it appears in iTunes under Devices. Select the Summary tab, and click the Restore button.
  3. Click Restore.
    Prompt text: "Are you sure you want to restore the iPod to its factory settings? All of your mnedia and other date will be erased."
  4. After a restore, the iOS device restarts. You should then see "Slide to set up". Follow the steps in the iOS Setup Assistant.
  5. If needed, restore your device from a previous backup.
If restoring does not finish successfully or if a restore error appears, see iOS: Resolving update and restore alert messages.

Additional Information

If your device is continually restarting, not responding, or showing the Apple logo with no progress bar or a stopped progress bar, place the device into recovery mode and try restoring again. 
Devices with cellular service should activate after a restore. If activation is not successful, see this article.

Forgot My iphone Passcode How to Unlock it ?

If you enter the wrong passcode six or more times, you'll see a message that says one of the following:
  • iPhone is disabled
  • iPad is disabled
  • iPod touch is disabled
The message says to try again later:
After too many attempts, your device may display, "[Device] is disabled, connect to iTunes".

If you have previously synced your device with iTunes

You may be able to reset the passcode by restoring the device.
  1. Connect the device to the computer with which you normally sync and open iTunes.
    Note: If iTunes prompts you to enter the passcode, try another computer that you have synced with. Otherwise, go to "If you have never synced your device with iTunes", below.
  2. Right-click the device in the left column and select Back up.
  3. When the backup is complete, select Restore.
  4. When finished, restore from your most recent backup.

If you have never synced your device with iTunes

Connecting the device may result in this error message: "iTunes could not connect to the [device] because it is locked with a passcode. You must enter your passcode on the [device] before it can be used with iTunes."
  1. Disconnect the USB cable from the device, but leave the other end of the cable connected to your computer's USB port.
  2. Turn off the device: Press and hold the Sleep/Wake button for a few seconds until the red slider appears, then slide the slider. Wait for the device to turn off.
  3. While pressing and holding the Home button, reconnect the USB cable to the device. The device should turn on.
  4. Continue holding the Home button until you see the "Connect to iTunes" screen. When this screen appears, release the Home button.
  5. iTunes should alert you that it has detected a device in recovery mode. Click OK, and then click Restore to restore the device.

If you don't have access to a computer


Additional Information

Note: You can configure your device to erase itself after ten consecutive incorrect password attempts. This setting is off by default. It can be turned on by tapping Settings > General > Passcode Lock.

Saturday, 1 December 2012

how to get the current location in latitude and longitude in objective c

- (void)viewDidLoad {
    [super viewDidLoad];

    locationManager = [[CLLocationManager alloc] init];
    locationManager.delegate = self;
    locationManager.distanceFilter = kCLDistanceFilterNone; // whenever we move
    locationManager.desiredAccuracy = kCLLocationAccuracyHundredMeters; // 100 m
    [locationManager startUpdatingLocation];

}

- (void)locationManager:(CLLocationManager *)manager
    didUpdateToLocation:(CLLocation *)newLocation
           fromLocation:(CLLocation *)oldLocation
{
    int degrees = newLocation.coordinate.latitude;
    double decimal = fabs(newLocation.coordinate.latitude - degrees);
    int minutes = decimal * 60;
    double seconds = decimal * 3600 - minutes * 60;
    NSString *lat = [NSString stringWithFormat:@"%d° %d' %1.4f\"", 
                     degrees, minutes, seconds];
    NSLog(@" Current Latitude : %@",lat);
    //latLabel.text = lat;
    degrees = newLocation.coordinate.longitude;
    decimal = fabs(newLocation.coordinate.longitude - degrees);
    minutes = decimal * 60;
    seconds = decimal * 3600 - minutes * 60;
    NSString *longt = [NSString stringWithFormat:@"%d° %d' %1.4f\"", 
                       degrees, minutes, seconds];
    NSLog(@" Current Longitude : %@",longt);
    //longLabel.text = longt;
}
But i am getting the default values i.e, Latitude : 42° 17' 36.8898" and Longitude : -71° 27' 43.1003" where my current Latitude:N 12° 56' 11.5624" and Longitude:E 77° 32' 41.0834". How to get the exact latitude and longitude. where i am doing the mistake or do i need to add any other method or function or framework.

Calculate distance between two place using latitude-longitude in gmap for iPhone ?

CLLocation *locA = [[CLLocation alloc] initWithLatitude:lat1 longitude:long1];

 CLLocation *locB = [[CLLocation alloc] initWithLatitude:lat2 longitude:long2];

 CLLocationDistance distance = [locA distanceFromLocation:locB];

 //Distance in Meters

 //1 meter == 100 centimeter

 //1 meter == 3.280 feet

 //1 meter == 10.76 square feet


 [locA release];

 [locB release];

Get coordinats from array of latitude and longitude ?

Arr_title = [[[[main valueForKey:@"responseData"] valueForKey:@"results"]valueForKey:@"titleNoFormatting"] copy];
    Arr_address=[[[[main valueForKey:@"responseData"]valueForKey:@"results"]valueForKey:@"addressLines"] copy];
    Arr_Lat=[[[[main valueForKey:@"responseData"]valueForKey:@"results"]valueForKey:@"lat"] copy];
    Arr_Long=[[[[main valueForKey:@"responseData"]valueForKey:@"results"]valueForKey:@"lng"] copy];
    Arr_call=[[[[[main valueForKey:@"responseData"]valueForKey:@"results"]valueForKey:@"phoneNumbers"]valueForKey:@"number"] copy];

   
    NSLog(@"Latitude------------ : %@",Arr_Lat);
    NSLog(@"Longitude-------------: %@",Arr_Long);
   
   
   
   
   
    NSString *latst=[[NSString alloc]initWithFormat:[Arr_Lat objectAtIndex:0]];
    NSString *longst=[[NSString alloc]initWithFormat:[Arr_Long objectAtIndex:0]];
   
    NSLog(@"First  lat : %@",latst);
    NSLog(@"First  long : %@",longst);
   
   
   
    CLLocationCoordinate2D coord = CLLocationCoordinate2DMake(coord.latitude = [latst doubleValue], coord.longitude = [longst doubleValue]);