Apple don't force developers to do any such thing. If a developer is checking for it, they are doing so of their own accord. Apple could build a jailbreak detection into the iOS if they wanted to, but they don't. They only patch security holes taken advantage of by jailbreaks.