我想知道如何製作一個基本的「Hello,World!」 MobileSubstrate
調整。如何創建基本的MobileSubstrate調整
0
A
回答
2
Getting Started將幫助您設置開發環境。這IPF將幫助您瞭解構建您的調整/應用程序,您可以查看我的github代碼示例。
0
我在另一個線程中寫了一個答案,這個線程顯然是一些人非常喜歡的;看看它here。
不過,@ EvilPenguin的回答是完全正確的,我只是在這裏和那裏解釋一些事情,但它最終會將您重定向到同一個地方。
0
#import <SpringBoard/SpringBoard.h> // for SBScreenFlash
%hook SBAwayLockBar
-(void)unlock // the method you’re hooking
{
%orig;
[[%c(SBScreenFlash) sharedInstance] flash];
}
%end
如果你使用Slider解鎖你的設備,它會截屏你的屏幕。它不是一個好的調整,但它只是你所要求的。
#import <SpringBoard/SpringBoard.h> // for SBScreenFlash
%hook SBAwayLockBar
-(void)unlock // the method you’re hooking
{
%orig;
UIAlertView *alert = [[UIAlertView alloc] initWithTitle:@"Hello World!" message:@"my first Tweak" delegate:nil cancelButtonTitle:@"Cool" otherButtonTitles:nil];
[alert show];
[alert release];
}
%end
這會提示alertview給你打個招呼世界;) 玩得開心
相關問題
- 1. 如何調試MobileSubstrate調整?
- 2. Mobilesubstrate:創建一個調整鉤入另一個調整或dylib
- 3. 如何爲iPhone創建MobileSubstrate插件?
- 4. 當我創建MobileSubstrate有重複的接口聲明的錯誤調整
- 5. 在MobileSubstrate調整中顯示UIView?
- 6. Mobilesubstrate MobileSafari調整徽標編譯問題
- 7. 基本的DSP級調整
- 8. 如何創建基本的jquery循環?
- 9. 如何創建基本的osx prefPane?
- 10. R - 如何調整使用RTextTools創建的文本分類器
- 11. 如何在Objective-C中創建和調用基本方法?
- 12. 基本:如何創建會話ID?
- 13. 如何創建一個基本ckeditor?
- 14. 我將如何返回? (MobileSubstrate)
- 15. 基本調整問題
- 16. Android基本版面調整
- 17. 基本的SQL UDF創建
- 18. mobilesubstrate extension
- 19. 如何調整UiLabel的基線位移?
- 20. 創建和調整UIImageView
- 21. 如何創建和調用文本
- 22. TFS:我如何創建基於字符串的整數字段?
- 23. 的Prestashop基本模塊,小調整
- 24. 建議先進性能調整 - 除了基本的索引
- 25. 如何調整XIB中的基本視圖以適應內容?
- 26. 如何調整基本適配器中的自定義佈局
- 27. 如何僅基於基本類型創建派生對象?
- 28. 如何創建整數
- 29. 創建基本動畫
- 30. 如何創建調整窗口大小時自動調整高度的多行文本框