Tag: 调整

如何转储AppStore应用程序

我从Cydia安装了“Class Dump”来获取应用程序头文件。 但有一个问题。 我可以在默认的应用程序中使用类转储。 例如,我运行这个命令: class-dump -H /Applications/MobileSafari.app/MobileSafari -o /Headers/safari ,可以在“/ Headers / safari /”中获得头文件。 但是,AppStore的应用程序,例如,我运行这个命令: class-dump -H /var/mobile/Applications/BFF…../Dropbox.app/Dropbox -o /Headers/dropbox和terminal工程,但出现乱码( ScreenShot ),然后terminal崩溃。 我如何获得AppStore应用程序头文件?

以编程方式从XIB调整自定义UIView的大小

我有以下问题:我在XIB文件中创build了一个自定义的UIView类和它的布局。 假设我在XIB中的自定义视图的大小是150 x 50。我已经启用了sizeClasses (wAny hAny)和AutoLayout 。 在模拟度量标准中,我设置了Size = Freeform , Status Bar = None , other = Inferred 。 我的自定义UIView类的代码如下所示: #import "CustomView.h" @implementation CustomView #pragma mark – Object lifecycle – (id)initWithFrame:(CGRect)frame { self = [super initWithFrame:frame]; if (self) { [self setup]; } return self; } – (id)initWithCoder:(NSCoder *)aDecoder { self = [super initWithCoder:aDecoder]; if […]

iOS中自动布局和自动resize的基本区别是什么?

我一直在寻找自动布局和自动resize之间的适当区别,但是无法find确切的答案。 在哪里我可以使用“自动布局”,并在应用程序中的“自动resize”? 任何帮助将是感谢的一部分。

如何截取整个屏幕截图,无论iOS 7(越狱)中最前面的应用程序,

在iOS7之前,我使用UIGetScreenImage()函数轻松截取屏幕截图,但是在iOS7中,它已经被弃用了,现在有没有什么好的方法来存档呢?谢谢! 另外:我需要在任何视图截图整个屏幕

UITableViewCell需要reloadData()来调整高度

我有一个应用约束的自定义表格单元格,但第一次显示表格行高不正确调整,除非新的单元格创build,有没有办法做到这一点,而无需再次调用reloadData?

如何在越狱设备上使用GSEvent模拟多点触摸?

我想模拟在越狱设备上的多点触摸事件,我尝试了GSEvent ,我不知道每个领域的结构,所以我只是假设每个pathInfo意味着一个手指信息,但没有效果,任何人都可以给我一些帮助?非常感谢你。 typedef struct touch { int identity; int x; int y; GSHandInfoType type; } touch; static void sendTouches(touch touches[]) { if (touches_count<1) { return; } uint8_t touchEvent[sizeof(GSEventRecord) + sizeof(GSHandInfo) + sizeof(GSPathInfo)*touches_count]; // structure of touch GSEvent struct GSTouchEvent { GSEventRecord record; GSHandInfo handInfo; } * event = (struct GSTouchEvent*) &touchEvent; bzero(touchEvent, sizeof(touchEvent)); // set […]

在iOS7中使用IOSurface在游戏中截屏

我试图从背景使用IOSurface截图,这是我的代码 IOMobileFramebufferConnection connect; kern_return_t result; IOSurfaceRef screenSurface = NULL; io_service_t framebufferService = IOServiceGetMatchingService(kIOMasterPortDefault, IOServiceMatching("AppleH1CLCD")); if(!framebufferService) framebufferService = IOServiceGetMatchingService(kIOMasterPortDefault, IOServiceMatching("AppleM2CLCD")); if(!framebufferService) framebufferService = IOServiceGetMatchingService(kIOMasterPortDefault, IOServiceMatching("AppleCLCD")); result = IOMobileFramebufferOpen(framebufferService, mach_task_self(), 0, &connect); result = IOMobileFramebufferGetLayerDefaultSurface(connect, 0, (CoreSurfaceBufferRef*)&screenSurface); uint32_t aseed; IOSurfaceLock(screenSurface, kIOSurfaceLockReadOnly, &aseed); uint32_t width = IOSurfaceGetWidth(screenSurface); uint32_t height = IOSurfaceGetHeight(screenSurface); CFMutableDictionaryRef dict; int pitch = width*4, size […]

错误编译调整在theos

我在这里使用教程设置了一个简单的调整。 但是,当我从这里运行make头,我得到 Making all for tweak WelcomeWagon… Preprocessing Tweak.xm… Compiling Tweak.xm… In file included from Tweak.xm:1: /opt/theos//include/SpringBoard/SpringBoard.h:7:26: error: UIApplication.h: No such file or directory cc1objplus: warnings being treated as errors In file included from /opt/theos//include/SpringBoard/UIApplicationDelegate-Protocol.h:7, from /opt/theos//include/SpringBoard/SpringBoard.h:9, from Tweak.xm:1: /opt/theos//include/SpringBoard/NSObject-Protocol.h:7: warning: duplicate declaration for protocol 'NSObject' In file included from /opt/theos//include/SpringBoard/SpringBoard.h:9, from Tweak.xm:1: /opt/theos//include/SpringBoard/UIApplicationDelegate-Protocol.h:11: warning: […]

iOS – 添加“对象”到现有的应用程序(越狱)

如何将“对象”添加到现有的应用程序? 例如, EasyRefresh for Chrome调整function,可以在iOS Chrome应用程序中启用一个新button,就像其他许多调整一样。 我怎样才能添加一个简单的UIButton ,例如,Twitter的应用程序? 有没有任何GitHub项目可以帮助我理解它是如何完成的? 图片来源: ModMyI 谢谢。

iOS私有API:locking设备并closures屏幕

我正在制作一个越狱应用程序,在用户启动应用程序时locking设备。 我试过GSEventLockDevice(); 从GraphicsServices.framework但这不能正常工作,因为它locking屏幕,但不closures屏幕。 有另一种方法来locking屏幕没有MobileSubstrate ?