2012-02-19 12 views

答えて

2

Getting Startedは、開発環境をセットアップするのに役立ちます。このIPFは、tweak/appの構築を理解するのに役立ちます。コード例については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 

スライダーを使用してデバイスをロック解除すると、画面がスクリーンショットされます。それは良い微調整ではありませんでしたが、あなたが求めていたのはそれだけでした。 が楽しい

を持っている);

#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を促すメッセージが表示されます