-2

My aim is when i delete the application i need to ask passcode for security reason. That passcode is correct the application will be deleted or else the application will not delete. how to achieve this, even it is possible for jailbreak iPhone not a problem.

This all are achieve our coding in programatically using iPhone sdk.

Thanks in Advance.

iSara
  • 919
  • 3
  • 10
  • 24

3 Answers3

1

AppStore application - Programically

No way to do it because only the user (or iTunes, or Xcode's Organizer) can remove applications from the device.You have no control via programically.

AppStore application - Manually:

You can't do it only for a single AppStore application. The reason is they are Sandboxed.

This means they are limited in how they can interact with other applications, and the iPhone itself.

You can do it for the entire applications that installed on your device via

Settings - > General->Restrictions.

enter image description here

Jailbroken application - Programically

if you want to uninstall apps, you can use private API MobileInstallationUninstall. However, it requires entitlement com.apple.private.mobileinstall.allowedSPI, which you can get, because your device is jailbroken.

Jailbroken application - Manually

You can jailbreak the phone and install a jailbreak tweak like Locktopus or Lockdown Pro. These let you set a passcode.

Shamsudheen TK
  • 30,739
  • 9
  • 69
  • 102
1

No need for a jailbreak. Simply go into Settings>General>Restrictions and don't allow "Deleting Apps". Restrictions are protected using a password just like your lock passcode (although it can be a different code if you would like).

  • Here i need to use iPhone application development with programatically for particular app. – iSara Jan 03 '14 at 06:47
0

Yes you can do with help of ‘AppLocker’ Password Protects Your Individual iOS Apps

Further more details:

Applocker

You can protect your photo and app from the second link

Password Protect iPhone Photos Or Any Other App

codercat
  • 22,873
  • 9
  • 61
  • 85