随笔分类 -  iOS

摘要:比如当前的collectionViewA(蓝色), 还有一个collectionViewCellA(红色),collectionViewCellA(红色)里面有一个collectionViewB(绿色), collectionViewCellB(绿色)里面有两个collectionViewCellB 阅读全文
posted @ 2019-09-06 12:23 喜狼狼 阅读(1213) 评论(0) 推荐(0)
摘要:1.打开终端(Terminal),进入项目目录下 Last login: Sun Aug 13 13:38:10 on ttys001 xilanglangdeMacBook-Pro:~ xinshaofeng$ cd /Users/xinshaofeng/Work/Found xilanglang 阅读全文
posted @ 2017-08-13 13:57 喜狼狼 阅读(901) 评论(0) 推荐(0)
摘要:-(SelfHelpReportChatRoomTableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath{ static NSString *indentifie 阅读全文
posted @ 2017-06-01 10:57 喜狼狼 阅读(1175) 评论(0) 推荐(0)
摘要:转 http://www.jianshu.com/p/2e4f7553659c 使用Xcode自带的静态分析工具 Product->Analyze(快捷键command+shift+B)可以找出代码潜在错误,如内存泄露,未使用函数和变量等 所谓静态内存分析, 是指在程序没运行的时候, 通过工具对代码 阅读全文
posted @ 2017-02-23 17:59 喜狼狼 阅读(730) 评论(0) 推荐(0)
摘要:NSURL *url = [NSURL URLWithString:@"Prefs:root=WIFI"]; Class LSApplicationWorkspace = NSClassFromString(@"LSApplicationWorkspace"); [[LSApplicationWor 阅读全文
posted @ 2017-02-09 10:23 喜狼狼 阅读(1614) 评论(0) 推荐(0)
摘要:UIWindow *keyWindow = [UIApplication sharedApplication].keyWindow;CGRect converControlTagRect = [self convertRect:self.controlTagView.frame toView:key 阅读全文
posted @ 2017-02-06 14:48 喜狼狼 阅读(343) 评论(0) 推荐(0)
摘要:转载:http://www.jianshu.com/p/2d1c06f2dfa4 #define MAX_STARWORDS_LENGTH 30 - (void)textViewDidChange:(UITextView *)textView{ // NSString * nsTextContent 阅读全文
posted @ 2016-05-26 11:48 喜狼狼 阅读(3524) 评论(0) 推荐(0)
摘要:NSMutableAttributedString str = [[NSMutableAttributedString alloc] initWithString:@"绘制不同字体 颜色 大小的字符串"]; [str addAttribute:NSForegroundColorAttributeNa 阅读全文
posted @ 2016-03-31 20:56 喜狼狼 阅读(251) 评论(0) 推荐(0)
摘要://boundingRectWithSize 的使用, 根据label字数计算UILable高度, 包含Emoji及多属性string + (NSInteger)heightForChangeableLabel:(NSString )text labelWidth:(NSInteger)labelW 阅读全文
posted @ 2016-03-29 21:04 喜狼狼 阅读(172) 评论(0) 推荐(0)
摘要:#import @interface DashesLineView : UIView@property(nonatomic)CGPoint startPoint;//虚线起点@property(nonatomic)CGPoint endPoint;//虚线终点@property(nonatomic,... 阅读全文
posted @ 2015-12-24 15:26 喜狼狼 阅读(2309) 评论(0) 推荐(0)
摘要:CGRect rect = self.frame; rect.size.height =113+70*(array.count%3==0 ? array.count/3 : array.count/3+1); for (int i=0; i<array.count; i++) {... 阅读全文
posted @ 2015-12-24 15:22 喜狼狼 阅读(1329) 评论(0) 推荐(0)
摘要:NSArray *subViews = [self subviews]; for (int i=0; i<subViews.count; i++) { if ([subViews[i] isKindOfClass:[MonitorCutView class]]) { ... 阅读全文
posted @ 2015-12-24 15:19 喜狼狼 阅读(331) 评论(0) 推荐(0)
摘要:+ (NSString *)cutpicArrayTransformStringByMoinid:(NSString *)monid{ NSString *ns=nil; NSMutableArray *cutPic=[[NSMutableArray alloc] init]; ... 阅读全文
posted @ 2015-12-24 15:14 喜狼狼 阅读(811) 评论(0) 推荐(0)
摘要://// NetStateManage.h//// Created by miniu on 15/11/24.// Copyright © 2015年 mini. All rights reserved.//#import #import "Reachability.h"@protocol NetS... 阅读全文
posted @ 2015-11-24 14:39 喜狼狼 阅读(237) 评论(0) 推荐(0)