-1

Convert NSArray to C Array.

NSArray *arr=[[NSArray alloc]initWithObjects: @"+918801234567",@"+ 918801234568", nil];

how to pass arr to CXCallDirectoryPhoneNumber phoneNumbers[]

Nirav D
  • 71,513
  • 12
  • 161
  • 183
  • Looks like you both have same task: http://stackoverflow.com/questions/41097841/callkit-in-ios-10-0 – Bhavin Ramani Dec 12 '16 at 11:23
  • You need to simply pass an array of int64, not strings; so, `[918801234567,9188011234568]` – Paulw11 Dec 12 '16 at 11:32
  • how to pass (NSArray *arr=[[NSArray alloc]initWithObjects: @"+918801234567",@"+ 918801234568", nil];) to CXCallkit class from viewcontroller. – ANKIT KUMAR Dec 16 '16 at 05:06

1 Answers1

1

Take unsignedLongLongValue of your phone numbers, not NSString. Check Callkit referance.

Arnab
  • 4,216
  • 2
  • 28
  • 50