Skip to content

lhr000lhr/ZJWallPaperDemo

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 

Repository files navigation

ZJWallPaperDemo:

无需越狱,使用苹果的私有Api动态改变壁纸和类似home键(appStore可用)的小功能的例子,模拟器和真机可用,有用赏个小星星吧

如何使用:

  1. /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/PrivateFrameworks/PhotoLibrary 加入到 build phases -> link binary with libs(拖进去,不要add other)
  2. #import "UIImage+ZJWallPaper.h"
  3. 使用一个存在的image实例调用 "UIImage+ZJWallPaper.h" 的方法就行了

例如:

[wallPaperImage zj_saveAsHomeScreen];//设为主屏幕壁纸

[wallPaperImage zj_saveAsLockScreen];//设为锁屏壁纸

[wallPaperImage zj_saveAsHomeScreenAndLockScreen];//同时设置为锁屏和主屏幕壁纸

例子:

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Objective-C 100.0%