the sample code to detect if an iOS device is jailbroken

I want to know the sample code to detect if an iOS device is jailbroken.

Is there a code to detect if iOS device running my application is jailbroken?

AFAIK, there is no robust method to detect this.

See discussion here: https://developer.apple.com/forums/thread/43073

Thanks for the response. I'll check out the thread you suggested.

the sample code to detect if an iOS device is jailbroken
 
 
Q