ios - phone call within table cell given -


I have created an array of some records and want to make phone call feature when choosing any cell ... like 89044 9 0035

  - (minus) Drishydidlod {arryAppleProducts = [[NSArray alloc] initWithObjects: @ "8904490035", @ "iPod", @ "MacBook", @ "MacBook Pro", null] ; ArryAdobeSoftwares = [[NSArray alloc] initWithObjects: @ "Flex", @ "AIR", @ "Flash", @ "Photoshop", zero]; ArryAdobeSoftwares1 = [[NSArray alloc] initWithObjects: @ "one", @ "two", @ "three", @ "four", zero]; Self.title = @ "Simple Table Exmaple"; [Super viewedload]; } - (void) Talikadrishy: (UITableView *) had Talikadrishy SelectionRowAtIndexPath: (NSIndexPath *) Suckankpth {NextViewController * nextController = [[NextViewController alloc] initWithNibName: @ "NextView" bundle: nil]; [Self. Push Navigation Controller ViewController: Animated NextController: Yes]; If (indexPath.section == 0) [nextController changeProductText: [arryAppleProducts objectAtIndex: indexPath.row]]; Else if (indexPath.section == 1) [nextController changeProductText: [arriAdobeSoftwares objectAtIndex: indexPath.row]]; Other [Controller Transformation Productive Text: [Aero Addoid Software 1 ObjectAutandx: IndexPath.ro]]; } To call the dynamic object from Ari Apple, follow us the following:    

  [[UIApplication shared application] openURL: [NSURL URLWithString: [NSString stringWithFormat: @ "tel:% @", [Areepalpprodktobaktattindaks: Indekspathkro]]]]; ;   

2) does not have any object using these particular products Aarpiapapl to call a:

  [[UIApplication sharedApplication] openURL: [NSURL URLWithString: [NSString stringWithFormat: @ "tel:% @", [saws Aplpektiks Objektotandeks: 0]]]]];   

Replace 0 according to the number of the array's required number

3) Use the following to call a special number: < Pre> [[UIApplication shared application] Opener: [NS URL URL Strength: @ "Telephone: 89044 9 0035"]]];

Comments

Popular posts from this blog

c - Mpirun hangs when mpi send and recieve is put in a loop -

python - Apply coupon to a customer's subscription based on non-stripe related actions on the site -

java - Unable to get JDBC connection in Spring application to MySQL -