A modified (not native) app downloaded from package management may be used to install a pattern lock on an iPhone. The modified applications are third-party software that you may download and use on your iPhone.