`
zani
  • 浏览: 350399 次
  • 性别: Icon_minigender_1
  • 来自: 福州
社区版块
存档分类
最新评论
文章列表

字体加粗

  lable.font = [UIFont fontWithName:@"Helvetica-BoldOblique" size:titleNameFontSize];  如果只是需要加粗,将Oblique去掉即可.某些字体名称 0blique-说明这是斜体了。   
方法一:   此时看看代码中是否用center来定位,如果用center来定位,会使图片边模糊,用frame,   CGSize size = charImage.frame.size; charImage.frame = CGRectMake((int)(centerX - size.width / 2), (int)(centerY - size.height / 2), size.width, size.height);  且把CGRectMake的第一个和第 ...
http://rowboatrevolution.com/2009/06/drop-shadows-in-uitableview/ http://cocoawithlove.com/2009/08/adding-shadow-effects-to-uitableview.html

获取系统时间

  NSDateFormatter *formatter = [[[NSDateFormatter alloc] init] autorelease]; [formatter setDateFormat:@"YYYY-MM-dd hh:mm:ss"]; NSString*locationTimeString=[formatter stringFromDate: [NSDate date]]; 用这种方法获取的时间, 如果手机不是用时间24小时设置的话, 那么这个方法获取的小时就会产生混淆,可以用 http://zani.iteye.com/blog/ ...
1. url带中文时编码 NSString* urlString = [NSString stringWithFormat:@"http://60.190.20.174/NBHYYYServices/ZQSBUpload.aspx?type=aqjc&filename=%@", fileName]; urlString = [urlString stringByAddingPercentEscapesUsingEncoding:CFStringConvertEncodingToNSStringEncoding(kCFStringEncodingGB_18030 ...
  uploadAlertView= [[UIAlertView alloc] initWithTitle:@"上报中" message:@"请稍等.." delegate:self cancelButtonTitle:nil otherButtonTitles:nil, nil]; UIActivityIndicatorView* activityView = [[UIActivityIndicatorView alloc] initWithActivityIndicatorStyle:UIActiv ...
1.获取文件的最后修改时间:   NSDictionary* fileAttributes = [[NSFileManager defaultManager] attributesOfItemAtPath:path error:nil]; DLog(@"%@", [fileAttributes objectForKey:NSFileModificationDate]);   2.遍历目录下的符合条件的文件:   NSArray* fiieList = [ [[NSFileManager defaultManager] contentsOfDirecto ...
http://www.raywenderlich.com/2502/introduction-to-calayers-tutorial    
载:http://nachbaur.com/blog/building-a-custom-dashboard-uibutton  As part of the Parking Mobility iPhone app I’ve been building, I wanted to integrate a simple “Quick Start” help guide to show people how to use the app without being intrusive.  I wanted to use the project’s branding as much as possibl ...

为View绘制阴影

  关键代码预览:   UIView *view = [[UIView alloc] initWithFrame:CGRectMake(0.0, 0.0, 300.0, 225.0)]; view.center = self.view.center; view.autoresizingMask = UIViewAutoresizingFlexibleLeftMargin | UIViewAutoresizingFlexibleTopMargin | UIViewAutoresizingFlexibleRightMargin | UIViewAutores ...
Global site tag (gtag.js) - Google Analytics