cgpathref displays error inside switch case objective C

 Problem:

When i try to add switch case in cgpath function displays below error code.

cgpathref expression expected objective c for switch case.


Solution:


In some cases objective C does not allow some set of codes inside the switch case.So better avoid those codes inside switch and add outside of the switch case.

Comments