Posts

Showing posts from September, 2020

Seperate phone number with country code iOS swift || Get only the phone number from iOS swift || How to remove country code while Pick Phone Number from contacts

 Solution:      The below function will return the phone number if you given with country code and + symbol.Its a default method in iOS. If you had the phone number with different countries with country code and other formate just pass it as string to the below function and get the original phone number.You don't need any pod files to get that.It's a default method in iOS.  Before you start the function must import the  PhoneNumberKit module to your project. Code: import  PhoneNumberKit func phoneNumberParse(phoneNo:String) -> String { var phNo:String: "" let  phoneNumberKit =  PhoneNumberKit ()        do  {            let  phoneNumber =  try  phoneNumberKit. parse (phoneNo)         phNo  = String(describing:phoneNumber. nationalNumber )       }        catch  { } return phNo }

Mac unable to install the package of the software downloaded from chrome

Image
 Solution: 1.First open the package it shows unable to install. 2.Open system preference app in your mac or goto apple logo in top of the menu and select preference -> open security and privacy 3. 4. select click the lock to make changes. 5.Enter password to unlock 6.In allow apps downloaded from that show your software name and says open it anyway..click on that and install. .

How to log an cgaffaintransform in objective C

 Solution: You cannot directly log the cgaffaintransform for that you can convert the CGAffaintransform into strin and log into that.      NSLog ( @"state = %@" , NSStringFromCGAffineTransf orm ( Object . tr ansform ));