Latest 0.0.5
Homepage https://github.com/RichardLeeH/Thomas
License MIT
Platforms ios 8.0
Authors

Thomas

CocoaPods Compatible
Language
Language
Carthage compatible
GitHub license

Thomas is a Library for opening settings page and sub pages on iOS 8+ in Objective-C/swift

Requirements

  • iOS 8.0 or later

Supported settings pages

  • [x] /// open wifi page :RDSysPageWifi(无线网络)
  • [x] /// open buletooth page :RDSysPageBluetooth (蓝牙)
  • [x] /// open hotsopt page :RDSysPageHotspot (个人热点)
  • [x] /// open about page :RDSysPageAbout (关于)
  • [x] /// open General :RDSysPageGeneral(通用)
  • [x] /// open Cellular :RDSysPageCellular(蜂窝移动)
  • [x] /// open iCloud :RDSysPage_iCloud
  • [x] /// open iCloud strorage :RDSysPage_iCloudStorage
  • [x] /// open app store :RDSysPageStore
  • [x] /// open notification :RDSysPageNotification(通知)
  • [x] /// open DISPLAY :RDSysPageDisplay(显示)
  • [x] /// open Location :RDSysPageLocation(位置)
  • [x] /// open Keyboard :RDSysPageKeyboard(键盘)
  • [x] /// open DateTime :RDSysPageDateTime(日期时间)
  • [x] /// open VPN :RDSysPageVPN
  • [x] /// open Phone :RDSysPagePhone(电话)
  • [x] /// open Sounds :RDSysPageSounds(声音)
  • [x] /// open Photos :RDSysPagePhotos(照片)
  • [x] /// open Wallpaper :RDSysPageWallpaper(壁纸)
  • [x] /// open BATTERY_USAGE :RDSysPageBATTERY(电池设置)
  • [x] /// open ACCESSIBILITY :RDSysPageACCESSIBILITY(辅助功能)
  • [x] /// open iOS SoftwareUpdate :RDSysPageSysUpdate(iOS 更新)
  • [x] /// 打开 本身 设置页面

Installation

How To Use

Objective-C:

#import <RDThomas/RDThomas.h>
...
    [RDThomas openPage:RDSysPageWifi completionHandler:^(BOOL aSuccess) {
    }];
...
    [RDThomas openOwnSettingsPageWith:^(BOOL aSuccess) {
    }];
Swift:

import RDThomas
...
        RDSwiftThomas.openPage(RDSysPageWifi) { (aSuccess) in
            print(aSuccess)
        }
...
        RDSwiftThomas.openOwnSettingsPageWith { (aSuccess) in
            print(aSuccess)
        }

Installation

There are three ways to use RDThomas in your project:

  • using CocoaPods
  • using Carthage
  • by cloning the project into your repository

Installation with CocoaPods

CocoaPods is a dependency manager for Objective-C, which automates and simplifies the process of using 3rd-party libraries in your projects. See the Get Started section for more details.

Podfile

platform :ios, '8.0'
pod 'RDThomas'

If you are using Swift, be sure to add use_frameworks! and set your target to iOS 8+:

platform :ios, '8.0'
use_frameworks!

Installation with Carthage (iOS 8+)

Carthage is a lightweight dependency manager for Swift and Objective-C. It leverages CocoaTouch modules and is less invasive than CocoaPods.

To install with carthage, follow the instruction on Carthage

Cartfile

github "RichardLeeH/Thomas"

Installation by cloning the repository

Import headers in your source files

In the source files where you need to use the library, import the header file:

objective-c
#import <RDThomas/RDThomas.h>
Swift:
import RDThomas

Licenses

All source code is licensed under the MIT License.

Latest podspec

{
    "name": "RDThomas",
    "version": "0.0.5",
    "summary": "open sys settings and sub pages",
    "description": "open iOS sys settings and sub pages",
    "homepage": "https://github.com/RichardLeeH/Thomas",
    "license": "MIT",
    "authors": {
        "RichardLee": "[email protected]"
    },
    "platforms": {
        "ios": "8.0"
    },
    "source": {
        "git": "https://github.com/RichardLeeH/Thomas.git",
        "tag": "0.0.5"
    },
    "source_files": "Thomas/**/*.{h,m}"
}

Pin It on Pinterest

Share This