2012-02-19 2 views

답변

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 

슬라이더를 사용하여 기기의 잠금을 해제하면 화면이 캡쳐됩니다. 그것의 좋은 비틀기는 아니지만 그것은 당신이 요구 한 전부입니다. 재미

을 가지고)

#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 메시지를 표시합니다

관련 문제