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
全本下载 | |
http://dl.wenku8.com/down.php?type=utf8&id=书号&fname=书名 | |
type: txt/utf8/big5 | |
分卷下载 | |
http://dl.wenku8.com/packtxt.php?aid=书号&vid=卷号&aname=书名&vname=卷名&charset=utf-8 | |
aid: 本书编号 | |
vid: 本卷第1章编号-1 | |
aname: 书名 | |
vname: 卷名 |
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
+ (UIImage*) resizeImage:(UIImage*)origImage toSize:(CGSize)newsize { | |
UIGraphicsBeginImageContextWithOptions(newsize, NO, 0.0); | |
[origImage drawInRect:CGRectMake(0, 0, newsize.width, newsize.height)]; | |
UIImage *newImage = UIGraphicsGetImageFromCurrentImageContext(); | |
UIGraphicsEndImageContext(); | |
return newImage; | |
} |
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
#import <AudioToolbox/AudioToolbox.h> | |
@interface MidiPlayer : UIView { | |
MusicPlayer player; | |
MusicSequence sequence; | |
} | |
- (void)playMidi:(NSString *)path { | |
NSURL *midiUrl = [NSURL URLWithString:path]; |