以编程方式检测iphone主屏幕上的向右滑动

时间:2014-02-15 12:55:03

标签: ios iphone jailbreak theos spotlight

我正在使用theos为iphone(运行iOS 7)创建越狱调整。

我真的很陌生,你可以认为这是我的第一个调整!

我想要什么? :

  1. 检查是否是第一个主屏幕
  2. IF 第一个屏幕,然后检测滑动右手势
  3. 向右滑动
  4.   

    就像ios 6及以下版本的聚光灯一样。

    我的代码:

    #import <SpringBoard/SpringBoard.h>
    
    %hook SpringBoard
    
    -(void)applicationDidFinishLaunching:(id)application {
        %orig;
    
       //Check if its the 1st home screen
       //Detect for Swipe right gesture
       //Do Something on Swipe right
    }
    
    %end
    

    我可以使用touchesBegan,touchesMoved,touchesEnded。但是我该如何实现手势?

    我错过了任何进口产品吗?

0 个答案:

没有答案
相关问题