问题标签 [theos]

For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.

0 投票
2 回答
1428 浏览

ios - 使用 AppList 数据源的 -[NSIndexPath 行] 中的断言失败

请参阅下面的更新。

我正在编写一个调整并且正在使用 AppList。我正在关注聚光灯并为所有已安装的应用程序创建一个表格。我正在尝试使用 dataSource 来获取信息(显示标识符等)。问题是如果定义了 dataSource ......我收到以下错误:

SpringBoard[1622] <Warning>: *** Assertion failure in -[NSIndexPath row], /SourceCache/UIKit/UIKit-2380.17/UITableViewSupport.m:2680 SpringBoard[1622] <Warning>: ***** AltKeyboard Uncaught Exception: Invalid index path for use with UITableView. Index paths passed to table view must contain exactly two indices specifying the section and row. Please use the category on NSIndexPath in UITableView.h if possible. *****
或者
SpringBoard[1890] <Warning>: ***** AltKeyboard Uncaught Exception: *** -[__NSArrayM objectAtIndex:]: index 2 beyond bounds [0 .. 1] ***** SpringBoard[1890] <Error>: *** Terminating app due to uncaught exception 'NSRangeException', reason: '*** -[__NSArrayM objectAtIndex:]: index 2 beyond bounds [0 .. 1]' *** First throw call stack:

如果未定义 dataSource 并且我使用假数据(测试名称),则可以正常生成表。当我打印数据源时,其中只有两个项目。

IRC 上的 Ryan Petrich 似乎暗示我做的一切都完全错误,但在那之后并没有太大帮助。也许我正在错误地解决这个问题?

代码:http
://pastebin.ca/2457626 存储库:https ://github.com/twodayslate/ListLauncher

编辑/更新! dataSource 给我带来了问题。它没有获取相同数量的应用程序,因此我收到了索引错误等。我有 200 多个应用程序,但 dataSource 只获取 2 个
。以下代码没有错误,但只显示 2 个项目: http: //pastebin.ca/2458961

编辑! 我改变了它,所以我只使用 ALApplicationList。我能够列出所有应用程序。但是,当我尝试滚动表格时,它会崩溃。排序和创建列表真的很慢,所以我相信这可能会导致问题。我不是 obj-c 的专家,所以我确信有比我正在做的更好的方法。http://pastebin.ca/2459318

0 投票
2 回答
34 浏览

ios - 将图标添加到 SBSearchTableViewCell

我正在尝试将图标添加到 SBSearchTableViewCell。

我在单元格顶部添加了一个子视图,但仍然留下了边框,并且文本位于图标下方。

http://i.imgur.com/tGqWaEa.png

我尝试挂钩,-[SBSearchModel _imageForDomain:andDisplayID:]但域为 0 且 displayID 为(空)。

代码: http: //pastebin.ca/2460380

资源:

0 投票
3 回答
378 浏览

ios - 进口给出错误

我在iDevice上使用theos。使用 installtheos3 命令安装它。如果我做对了,它也安装了 SDK。现在我有一个项目

我还将 IOKit 添加到 theos 的 makefile _FRAMEWORK 部分。我还尝试将其添加到 PRIVATE_FRAMEWORKS 部分。

当我尝试“制作”时,出现此错误:

其他框架没有错误,只有这个。
谢谢!

0 投票
0 回答
529 浏览

ios - 如何使用 theos 从 iOS 3 SDK 中的 IOKit 获取电池电量?

所以,我想使用 IOKit 将电池电量显示为使用 theos 的 iOS 3 SDK 的百分比,它编译正确,但是当它试图链接一些符号时,它说:

我的 .h 为 RootViewController 是:

我的 .mm 为 RootViewController 是:

请记住,这可以与我的 iPod Touch 2G (iOS 4.2.1) 上的 iOS 3 SDK 正确编译,只是不会链接应用程序。

0 投票
2 回答
613 浏览

ios - 尝试记录 NSDictionary 时 iOS 应用程序崩溃

我在尝试记录 NSDictionary 内容时遇到问题,一旦调用该方法,应用程序就会崩溃。

这是我在一位才华横溢的“黑客”的建议下尝试过的代码:

也试过:

这两种方式都会导致应用程序崩溃。这是在带有 ios 6.1.3 系留 JB 的 iphone 4 上。

有人对这里可能有什么问题有什么建议吗?

0 投票
1 回答
79 浏览

ios - 在theos IOS上编译出错“Id返回1退出状态”

我想在我的 iDevice (iTouch 4G IOS 6.1.3) 上用 Theos 编译一个 Tweak 但我有这个错误。!

图片链接:http: //hpics.li/d090438

请帮帮我 !

0 投票
2 回答
194 浏览

ios - 在 iOS6 中获取邮件内容

我正在尝试获取给定BBBulletin.

代码:https ://ghostbin.com/paste/2gbej

日志:https ://ghostbin.com/paste/aun4c

我可以获得特定的外部 ID 和库 ID。给定库 id,我可以得到,LibraryMessage但我不能从中得到任何有用的东西。

我不能使用MSNotificationObserver,因为我必须使用BBBulletin

0 投票
2 回答
8358 浏览

objective-c - (iOS, TheOS) %hook into global app function

I am looking for a global function for apps in iOS 7.

More specifically, I want to injected code into the app(s) upon launch, which will only effect the app, and not the SpringBoard.

I have tried a couple of things but they only affect the SpringBoard:

These are just a couple of examples of functions I've tried.

I suspect the filter needs to be changed as well, but that depends on where the function is located ofc (com.apple.springboard is set atm).

I was received a tip to set the filter to *, but that doesn't do me much good if I don't know what function to %hook.

Please explain your answer if possible.

0 投票
1 回答
2258 浏览

mobile - iOS7跳板不显示移动端构建app

我正在使用移动终端和 THEOS 在 iPad 上编写 iOS APP。我正在关注本教程https://sites.google.com/site/theostutorials/chapter-2-my-first-app/lesson-3-build-and-test

我成功地完成了所有步骤,但我的应用程序没有显示在 springBoard 上。我在移动终端上运行命令“make package install”,它会创建 .deb 文件。我使用 iFile 安装了该 deb 文件,然后重新启动设备,也重新启动,但应用程序没有显示在 SpringBoard 上

设备 = iPad 3,3 iOS 7.0.4

0 投票
1 回答
1197 浏览

ios - 简单调整的THEOS编译错误

我一直在使用 Flex 为 iOS 7 创建补丁,并决定尝试创建一个专用的 Cydia Tweak。从简单的开始,我决定为 iOS 7 更新一个无图标徽章的调整。

我的 Tweak.xm 文件看起来像这样

这个项目的 Makefile 是

我知道我正在使用正确的东西和正确的方法,因为它适用于 Flex,只是不确定我做错了什么,因为它在编译期间失败了。

错误是:

  • 只有构造函数采用基本初始值设定项
  • 无政府主义旧式基类初始化器

错误 1 ​​和错误 2