上一页 1 ··· 4 5 6 7 8 9 10 11 下一页
摘要: //////////////////NSCalendarUnit 传入NSWeekOfMonthCalendarUnit 代表星期 传入NSMonthCalendarUnit 代表月//得到一个月或是一个星期的最后一天+(NSDate *)getLastDateWith... 阅读全文
posted @ 2014-04-24 20:51 bokeyuan_dan 阅读(357) 评论(0) 推荐(0) 编辑
摘要: 什么是GCD?Grand Central Dispatch (GCD)是Apple开发的一个多核编程的解决方法。该方法在Mac OS X 10.6雪豹中首次推出,并随后被引入到了iOS4.0中。GCD是一个替代诸如NSThread, NSOperationQueue, NSInvocationOpe... 阅读全文
posted @ 2014-04-23 10:27 bokeyuan_dan 阅读(244) 评论(0) 推荐(0) 编辑
摘要: mainVC.modalTransitionStyle=UIModalTransitionStyleFlipHorizontal;[self presentViewController:mainVC animated:YES completion:nil]; 阅读全文
posted @ 2014-04-22 16:06 bokeyuan_dan 阅读(167) 评论(0) 推荐(0) 编辑
摘要: 一、没有包装任何 导航控制器 或者 UITabBarController1.控制器的view是UIScrollView\UITableView\UICollectionView时(控制器是UITableViewController的时候)- (void)viewDidLoad{ [super vi... 阅读全文
posted @ 2014-04-22 15:38 bokeyuan_dan 阅读(164) 评论(0) 推荐(0) 编辑
摘要: 如:aaabbs[e]yuejiashidi[/e]suehahs[e]ueha[/e]lsuehahs[e] [/e]则输出:yuejiashidi ueha ueha//装载每一对[e][/e]之间的字符串 NSMutableArray *subArray = [NSMu... 阅读全文
posted @ 2014-04-15 15:11 bokeyuan_dan 阅读(403) 评论(0) 推荐(0) 编辑
摘要: An NSAttributedString object manages character strings and associated sets of attributes (for example, font and kerning) that apply to individual char 阅读全文
posted @ 2014-04-14 11:55 bokeyuan_dan 阅读(271) 评论(0) 推荐(0) 编辑
摘要: 最近很多人问ShareSDK的授权视图和分享视图的导航栏样式与应用风格不一致,能否修改导航栏的样式?那么这里我就2.6.1版本进行说明(还在使用1.x版本的朋友建议升级到2.x版本,在新版本中可定制的东西比旧版本更多更灵活哦)。 其实要修改导航栏需要在分享接口(showShareActionSheet或者showShareView)中指定authOptions的viewDelegate和shareOptions中的shareViewDelegate参数。其中authOptions是授权相关的设置,而shareOptions则是分享相关的设置。那么这两个对象都可以通过ShareSDK相关方... 阅读全文
posted @ 2014-04-02 16:02 bokeyuan_dan 阅读(745) 评论(0) 推荐(0) 编辑
摘要: 直接下载解压就能用http://developer.android.com/sdk/index.html 阅读全文
posted @ 2014-04-02 10:54 bokeyuan_dan 阅读(2120) 评论(0) 推荐(0) 编辑
摘要: 改变UITextField placeHolder颜色、字体我们有时需要定制化UITextField对象的风格,可以添加许多不同的重写方法,来改变文本字段的显示行为。这些方法都会返回一个CGRect结构,制定了文本字段每个部件的边界范围,甚至修改placeHolder颜色,字体。– textRectForBounds: //重写来重置文字区域– drawTextInRect: //改变绘文字属性.重写时调用super可以按默认图形属性绘制,若自己完全重写绘制函数,就不用调用super了.– placeholderRectForBounds: //重写来重置占位符区域– draw... 阅读全文
posted @ 2014-03-31 11:56 bokeyuan_dan 阅读(231) 评论(0) 推荐(0) 编辑
摘要: Regular Expression MetacharactersCharacteroutsideof sets[inside sets]Description\a✓✓Match a BELL, \u0007\A✓Match at the beginning of the input. Differs from^in that\Awill not match after a new line within the input.\b✓Match if the current position is a word boundary. Boundaries occur at the transiti 阅读全文
posted @ 2014-03-31 11:54 bokeyuan_dan 阅读(263) 评论(0) 推荐(0) 编辑
上一页 1 ··· 4 5 6 7 8 9 10 11 下一页