How to add a button to settings.bundle?

I am developing an application for the iPhone, and by default the user is logged in. If he wants to log out, he must open the settings and click the "Logout" button, which will delete his data and ask for a login next time the application is open. How to add such a button? Like in twitter settings

enter image description here

+5
source share
3 answers

Unfortunately, this is not possible using public APIs. Keep in mind that Apple reserves many, many undocumented (and extremely cool) features for it, and these are affiliate applications. You are limited only by the following:

. () . . - PSTextFieldSpecifier.

. . . ( , .) PSTitleValueSpecifier.

: /. , . , . PSToggleSwitchSpecifier.

. . , . , , . PSSliderSpecifier.

. . , . . PSMultiValueSpecifier.

: . . , . PSGroupSpecifier.

: . . , , . " ". PSChildPaneSpecifier.

+4

CodaFi, . " ". , .

+4

"InAppSettingsKit" , , , , . , - , , , : http://www.inappsettingskit.com/

"IASKButtonSpecifier" "Custom Viewcontrollers".

, , . InAppSettingsKit .

Github: https://github.com/futuretap/InAppSettingsKit

Then open InAppSettingsKit.xcworkspace in your Xcode and learn how they implemented the various types of settings entries. They definitely support what you are looking for. This is really impressive.

Eric

-1
source

All Articles