星期一, 十一月 30, 2015
星期日, 十一月 15, 2015
90天试用期
星期日, 十月 04, 2015
windows 10 初体验
星期五, 九月 04, 2015
WR 30M Water Resistant 30M 3ATM 手表可以淋浴吗?
星期四, 八月 06, 2015
Follow last post
angular way to popup ios keyboard after clearing field
星期二, 六月 09, 2015
Convert from HTML to MOBi with Calibre
星期五, 五月 22, 2015
Title in Reference doesn't wrap for biblatex
Word movement in Mac os Terminal
星期三, 五月 13, 2015
Diary Number One
Copy and paste colored console output from Mac os
星期四, 三月 19, 2015
Dymo Pnp on mac os
Objective C append bytes
const char *bytes = [jsonData bytes];
NSMutableData *data = [[NSMutableData alloc] init];
for (int i = 0; i < [jsonData length]; i++){
unsigned char c = (unsigned char)bytes[i];
if (c < 32 && c != 10 && c != 14){
//Do nothing
}else{
[data appendBytes:&c length:1];
}
}
星期五, 二月 20, 2015
Understand android contact database
DNS not working for .local in Yosemite?
星期四, 二月 12, 2015
超好用国际电话卡rebtel
星期五, 一月 30, 2015
IOS Transform logo back to its original position
It seems that the second transform calculate the position still based on the original position.
- (void) animateLogo{
//Move the logo to center
CGAffineTransform transformTranslate = CGAffineTransformMakeTranslation(0, 53.0);
CGAffineTransform transformScale = CGAffineTransformMakeScale(1.35, 1.35);
CGAffineTransform transformClock = CGAffineTransformConcat(transformScale, transformTranslate);
[self.logoImageView setTransform:transformClock];
[UIView animateWithDuration:1.0
delay: 0.0
options: UIViewAnimationOptionCurveEaseIn
animations:^{
//Move logo back to the original position.
CGAffineTransform transformTranslate2 = CGAffineTransformMakeTranslation(0, 0);
CGAffineTransform transformScale2 = CGAffineTransformMakeScale(1, 1);
CGAffineTransform transformClock2 = CGAffineTransformConcat(transformScale2, transformTranslate2);
[self.logoImageView setTransform:transformClock2];
}
completion: ^(BOOL finish){
}];
}