当前位置:编程学习 > wap >>

求助3个功能的实现(求越狱开发高手帮忙)

1、类似手机助手,当手机连接到电脑上时能自动识别手机

2、想assitive touch 一样 能够截图(当前运行的不是自己的应用)

3、发送点击和滑动命令 

 (比如当前的运行的是一个画画的程序,我的程序可以通过发送滑动命令 画一条直线  ) --------------------编程问答-------------------- 2.截图在非越狱机上也可以实现,

#pragma mark - Utility Methods -
- (UIImage *)capture
{
    UIGraphicsBeginImageContextWithOptions(CGSizeMake([CYInfo uiWidth], [CYInfo uiHeight]), self.view.opaque, [CYInfo screenScale]);
    [KEY_WINDOW.layer renderInContext:UIGraphicsGetCurrentContext()];
    
    UIImage * img = UIGraphicsGetImageFromCurrentImageContext();
    
    UIGraphicsEndImageContext();
    
    return img;
}
--------------------编程问答--------------------
引用 1 楼 creso 的回复:
2.截图在非越狱机上也可以实现,

#pragma mark - Utility Methods -
- (UIImage *)capture
{
    UIGraphicsBeginImageContextWithOptions(CGSizeMake([CYInfo uiWidth], [CYInfo uiHeight]), self.view.opaque, [CYInfo screenScale]);
    [KEY_WINDOW.layer renderInContext:UIGraphicsGetCurrentContext()];
    
    UIImage * img = UIGraphicsGetImageFromCurrentImageContext();
    
    UIGraphicsEndImageContext();
    
    return img;
}



这个可以截取其他应用运行时的界面吗?就是不仅仅对自己的应用截图 --------------------编程问答-------------------- 急求高手帮忙
补充:移动开发 ,  iPhone
CopyRight © 2012 站长网 编程知识问答 www.zzzyk.com All Rights Reserved
部份技术文章来自网络,