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

浙公网安备 33010602011771号