This file contains hidden or 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
| // cheat in the game 2048 | |
| // cheat is not funny so don't compile to cheat | |
| // so why I did? | |
| // what is funny is to make the cheat, not to play with it =) | |
| // how to get headers of App Store Apps ? | |
| // https://github.com/MP0w/dumpdecrypted | |
| @interface ViewController: NSObject | |
| - (void)cheat; |
This file contains hidden or 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
| //place a button somewhere and add a target with selector showMusic: | |
| //.... | |
| -(void)showMusic:(UIButton *)aButtonPlacedSomewhere{ | |
| MPMediaPickerController* picker=[[MPMediaPickerController alloc] initWithMediaTypes:MPMediaTypeMusic]; | |
| picker.showsCloudItems=YES; | |
| picker.allowsPickingMultipleItems=YES; | |
| picker.delegate=self; | |
| [self presentViewController:picker animated:NO completion:NULL]; | |
| } |
This file contains hidden or 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)textViewDidChange:(UITextView *)textView { | |
| CGRect line = [textView caretRectForPosition: | |
| textView.selectedTextRange.start]; | |
| CGFloat overflow = line.origin.y + line.size.height | |
| - ( textView.contentOffset.y + textView.bounds.size.height | |
| - textView.contentInset.bottom - textView.contentInset.top ); | |
| if ( overflow > 0 ) { | |
| CGPoint offset = textView.contentOffset; | |
| offset.y += overflow + 7; | |
| [UIView animateWithDuration:.2 animations:^{ |
NewerOlder