04 2016 档案
摘要://Documents: NSArray *paths = NSSearchPathForDirectoriesInDomains(NSCachesDirectory, NSUserDomainMask, YES); //username md5 const char *cStr = [userNa
阅读全文
摘要://UIImage图片转成Base64字符串: UIImage *originImage = [UIImage imageNamed:@"originImage.png"]; NSData *data = UIImageJPEGRepresentation(originImage, 1.0f); N
阅读全文
摘要:dddd0427 SingleVip.h SingleVip.m
阅读全文
摘要:self.emojiMap = [NSArray arrayWithObjects: [NSArray arrayWithObjects:@"\u2196", @"\uE237", nil], [NSArray arrayWithObjects:@"\u2197", @"\uE236", nil],
阅读全文
摘要://添加边框和提示 CGRect frameRect = CGRectMake(20, 90, self.window.frame.size.width-40, self.window.frame.size.height-180); UIView *frameView = [[UIView allo
阅读全文
摘要:[self.view bringSubviewToFront:pickview]; - (void)removeFromSuperview; - (void)insertSubview:(UIView *)view atIndex:(NSInteger)index; - (void)exchange
阅读全文
摘要:UIView *bgRight=[[UIView alloc]initWithFrame:CGRectMake(SCREEN_WIDTH/2, 0, SCREEN_WIDTH/2, 35)]; bgRight.backgroundColor=[UIColor whiteColor]; [bgView
阅读全文
摘要:http://www.tuicool.com/articles/zQJ32yj
阅读全文
摘要:#import <UIKit/UIKit.h> @interface UITabBar (badge) - (void)showBadgeOnItemIndex:(int)index; //显示小红点 - (void)hideBadgeOnItemIndex:(int)index; //隐藏小红点
阅读全文
摘要:for (UIBarItem *item in self.tabBarController.tabBar.items) { [item setTitleTextAttributes:[NSDictionary dictionaryWithObjectsAndKeys: [UIFont fontWit
阅读全文