I have just found out that this method is not working in iOS 7. Encountered -'[__NSConcreteURLComponents string]: unrecognized selector sent to instance 0x167a12d0'. It's fine working on iOS 8 and iOS 9.
– felixwcfApr 18 '16 at 3:19