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
- (void)showTweetSheet | |
{ | |
// Create an instance of the Tweet Sheet | |
SLComposeViewController *tweetSheet = [SLComposeViewController | |
composeViewControllerForServiceType: | |
SLServiceTypeTwitter]; | |
// Sets the completion handler. Note that we don't know which thread the | |
// block will be called on, so we need to ensure that any UI updates occur | |
// on the main queue |
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
int userInput; | |
scanf("%i", userInput); | |
NSLog(@"%i", userInput * 2); |
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
/************************************************ | |
No Carrier Name by Bradley Friedman (Sirex_iOS) | |
Release - 2012 | |
Uploaded to sirex.net16.net | |
************************************************/ | |
%hook SBTelephonyManager | |
-(id)operatorName { |
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
/************************************************ | |
No Operator Name by Bradley Friedman (Sirex_iOS) | |
Release - 2012 | |
Uploaded to sirex.net16.net | |
************************************************/ | |
%hook SBTelephonyManager | |
-(id)operatorName { |
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
UIView *tableView = MSHookIvar<UIView *>(self, "_tableView"); | |
tableView.frame = CGRectMake(0, 0, 320, 0); | |
[UIView beginAnimations:nil context:NULL]; | |
[UIView setAnimationDuration:0.5]; | |
[tableView setFrame: CGRectMake(0, 0, 320, 480)]; | |
[UIView commitAnimations]; |
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
- (void)mediaKeyUp:(struct __GSEvent *)fp8 { | |
if (brightnessMode) { | |
[[%c(SBBrightnessController) sharedBrightnessController] adjustBacklightLevel:YES]; | |
} | |
else { |
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 *_contentView; | |
%hook SBAppSwitcherBarView | |
-(id)initWithFrame { | |
CGRect viewRect = CGRectMake(0, 0, 100, 100); | |
UIView *myView = [[UIView alloc] initWithFrame:viewRect]; | |
{_contentView addSubView:myView]; | |
} |
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
@interface SBBulletinBannerItem : NSObject | |
@end | |
%hook SBBannerView | |
-(id)initWithItem:(SBBulletinBannerItem *)item { | |
UIColor *myColor = [UIColor blueColor]; | |
UIImageView *bannerView = MSHookIvar<UIImageView *>(self, "_bannerView"); | |
bannerView.backgroundColor = underlayView.backgroundColor = myColor; |
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 SBTelephonyManager | |
-(NSString *)operatorName { | |
NSString *dateString = @"DateGoesHere"; | |
return dateString; | |
} |
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 SBTelephonyManager | |
-(NSString *)operatorName { | |
NSDate* date = [NSDate date]; | |
return date; | |
} |
NewerOlder