Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #import <Preferences/Preferences.h>
- @interface EasySpringListController: PSListController {
- }
- @end
- @implementation EasySpringListController
- - (void)alertView:(UIAlertView *)alertView
- clickedButtonAtIndex:(NSInteger)buttonIndex{
- if (buttonIndex == [alertView cancelButtonIndex]){
- }else{
- system("killall -9 SpringBoard");
- }
- }
- - (void)respringDevice
- {
- UIAlertView *alert = [[UIAlertView alloc] initWithTitle:@"EasySpring Alert"
- message:@"Would you like to Respring your device?"
- delegate:self
- cancelButtonTitle:@"Cancel"
- otherButtonTitles:@"Respring", nil];
- [alert show];
- }
- - (void)twitterNav
- {
- [[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"http://www.twitter.com/TheOneAndOnlyCH"]];
- }
- - (void)redditNav
- {
- [[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"http://www.reddit.com/u/rob311"]];
- }
- - (id)specifiers {
- if(_specifiers == nil) {
- _specifiers = [[self loadSpecifiersFromPlistName:@"EasySpring" target:self] retain];
- }
- return _specifiers;
- }
- @end
- // vim:ft=objc
Add Comment
Please, Sign In to add comment