프로젝트
GitHub에서 보기
mmin18/WaxPatch
소개
Lua 스크립트를 동적으로 로드해 iOS 앱의 동작을 변경합니다.
웹 및 앱 개발측정된 스타 증가
- in 24h
- 0
- in 7 days
- 0
- in 15 days
- -1
- in 1 month
- 기록 수집 중
서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.
README.md
OriginalWax Loader
Mutated version of Wax (https://github.com/probablycorey/wax/)
Support method override and direct method call from Obj-C code, which gives you the ability to dynamically change the behavior of a running iOS application.
It has been proved stable on more than 5,000,000 devices.
Tutorial
The patch is a zip file contains patch.lua and other lua codes. The sample code can be found at /patch folder.
The sample iOS project loads the patch from a url (which you probably want to change in AppDelegate.m) before launch.
The original version in obj-c:

@implementation MainViewController
- (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section {
return 10;
}
- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath {
UITableViewCell *cell = [[UITableViewCell alloc] initWithStyle:UITableViewCellStyleSubtitle reuseIdentifier:@"Cell"];
cell.textLabel.text = [NSString stringWithFormat:@"%d", indexPath.row + 1];
return cell;
}
@end
The pacthed version with lua:

waxClass{"MainViewController", UITableViewController}
function tableView_cellForRowAtIndexPath(self, tableView, indexPath)
local cell = self:ORIGtableView_cellForRowAtIndexPath(tableView, indexPath) -- The original method is retained with 'ORIG' prefix
cell:textLabel():setText("" .. (10 - indexPath:row()))
cell:detailTextLabel():setText("http://github.com/mmin18")
cell:textLabel():setTextColor(UIColor:redColor())
return cell
end
관련 프로젝트 살펴보기
불러오는 중…