摘要:
[[UIApplication sharedApplication] setStatusBarStyle:UIStatusBarStyleDefault]; 阅读全文
摘要:
// 提示用户更新-(void)checkAppUpdate{ NSDictionary *infoDict = [[NSBundle mainBundle] infoDictionary]; NSString *nowVersion = [infoDict objectForKey:@"CFBun 阅读全文
摘要:
UIImage *image1 = [UIImage imageNamed:@"p1"]; UIImage *image2 = [UIImage imageNamed:@"p2"]; CGSize size = CGSizeMake([UIScreen mainScreen].bounds.size 阅读全文
摘要:
情景 由于网络不好,更新或上传失败造成 1.点击WorkingCopy 2.点击Clean 如果clean没有效果的话只好手动删除锁定文件。 cd 到svn项目目录下,然后执行如下命令 del lock /q/s 就把锁删掉了。 阅读全文
摘要:
var lable = UILabel (frame: CGRectMake(10,10,200,100)) lable.text = "yangxiaolong yangyang" lable.backgroundColor = UIColor .redColor() lable.textColo 阅读全文
摘要:
-(NSString *)toUpper:(NSString *)str{ for (NSInteger i=0; i<str.length; i++) { if ([str characterAtIndex:i]>='a'&[str characterAtIndex:i]<='z') { //A 阅读全文
摘要:
在终端中mkdir -p ~/Library/Application\ Support/Developer/Shared/Xcode/Plug-ins curl -fsSL https://raw.github.com/supermarin/Alcatraz/master/Scripts/insta 阅读全文
摘要:
//根据polyline设置地图范围- (void)mapViewFitPolyLine:(BMKPolyline *) polyLine { CGFloat ltX, ltY, rbX, rbY; if (polyLine.pointCount < 1) { return; } BMKMapPoi 阅读全文
摘要:
UICollectionView *ta = (UICollectionView *)scrollView; NSArray *Vells = [ta visibleCells]; NSIndexPath *dex = [ta indexPathForCell:Vells[0]]; table 同上 阅读全文
摘要:
NSArray *array = [NSArray array]; [array sortedArrayUsingComparator:^NSComparisonResult(id obj1, id obj2){ NSNumber index1 = [obj1 valueForKey:@"index 阅读全文