This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
%hook SBApplicationIcon | |
-(void)launch{ | |
UIAlertView* __launchView = [[[UIAlertView alloc] init] autorelease]; | |
__launchView.title = @"No way muchacho"; | |
__launchView.message = @"You can't touch dis!"; | |
[__launchView addButtonWithTitle:@"Dismiss"]; | |
[__launchView show]; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
static UIView *greenView = nil; | |
%hook SBIconScrollView | |
// Make it wider | |
-(void)setContentSize:(CGSize)size{ | |
if (!greenView) { | |
greenView = [[[UIView alloc] initWithFrame:CGRectMake(0, 0, self.bounds.size.width, self.bounds.size.height)] autorelease]; | |
greenView.backgroundColor = [UIColor greenColor]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* References: | |
* http://iky1e.tumblr.com/post/13985531616/raw-log-sbdisplay-settings | |
* http://iphonedevwiki.net/index.php/SBDisplay | |
* http://iphonedevwiki.net/index.php/SBDisplayStack | |
* http://code.google.com/p/iphone-tweaks/wiki/DevelopmentNotes | |
*/ | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/cycript | |
var lb =[LibDisplay sharedInstance]; | |
var displayStacks = lb.displayStacks; | |
var stack = displayStacks[0]; //activate stack | |
var stack2 = displayStacks[1]; // suspended stack | |
var app = [[SBApplicationController sharedInstance] applicationWithDisplayIdentifier:"com.appcubby.launchpro"]; | |
var w = [SBUIController sharedInstance].window; | |
var csview = nil; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
CGFloat scrollViewHeight = 0.0f; | |
CGFloat scrollViewWidth = 0.0f; | |
for (UIView *view in scrollView.subviews) { | |
CGFloat height = (view.frame.size.height + view.frame.origin.y); | |
scrollViewHeight = ((height > scrollViewHeight) ? height : scrollViewHeight); | |
CGFloat width = (view.frame.size.width + view.frame.origin.x); | |
scrollViewWidth = ((width > scrollViewWidth) ? width : scrollViewWidth); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Public Class Animation | |
' Property delegate property for each animation | |
Private _delegate As AnimationFinished | |
Public Property didFinishDelegate() As AnimationFinished | |
Get | |
Return _delegate | |
End Get | |
Set(ByVal value As AnimationFinished) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//SBIconBadgeImage = UIImage subclass | |
__NSMallocBlock__ *block(NSString *string) = [SBIconBadgeImage creationBlockForText:nil]; | |
/** Test Results: **/ | |
block(); | |
//Error: incorrect number of arguments to ffi function | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var name = [app _currentDefaultPNGName]; | |
@"UIApplicationAutomaticSnapshotDefault" | |
[app defaultImagePathForCurrentOrientationWithName:name]; | |
@"/var/mobile/Library/Caches/Snapshots/com.apple.weather/[email protected]" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function sub_10001d783 { | |
r12 = rdi; | |
r13 = *objc_msgSend; | |
rax = [*(r12 + 0x20) bundleIdentifier]; | |
r14 = rax; | |
rax = [*(r12 + 0x20) isWebApplication]; | |
if (rax != 0x0) { | |
r13 = *objc_msgSend; | |
rax = (r13)(*(r12 + 0x20), @selector(displayIdentifier)); | |
rax = (r13)(rax, *objc_sel_copy); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//SBBulletinBannerController | |
-(BBBulletinRequest*)showTestBanner:(NSString*)something { | |
//r14 = self | |
//r15 = something | |
static NSInteger testCount = 0; | |
BBBulletinRequest *request = [[BBBulletinRequest alloc] init]; | |
[request setBulletinID:something]; | |
[request setTitle:something]; | |
[request setMessage:[NSString stringWithFormat:@"Fake iTunes notification %ld", testCount]]; |
OlderNewer