摘要: 通过改变要隐藏的item的高度实现隐藏和显示item1.创建UITableView#import "ViewController.h"@interface ViewController ()@property(nonatomic, strong)UITableView *tableView;@pro... 阅读全文
posted @ 2015-07-09 09:57 wb145230 阅读(6421) 评论(0) 推荐(0) 编辑
摘要: 创建一个测试的UIButton#import "ViewController.h"@interface ViewController ()@property(nonatomic, strong)UIButton *button;@end@implementation ViewController- ... 阅读全文
posted @ 2015-06-30 11:59 wb145230 阅读(12693) 评论(0) 推荐(0) 编辑
摘要: 第一次玩Xposed框架,按照多个demo的格式写了一个demo发现死活不进入public abstract void handleLoadPackage(LoadPackageParam lpparam) throws Throwable;方法,去/data/data/de.robv.androi... 阅读全文
posted @ 2015-06-27 17:11 wb145230 阅读(6714) 评论(0) 推荐(2) 编辑
摘要: iOS的Widget类似Android的Notification设置flags为Notification.FLAG_ONGOING_EVENT后 OK,大约知道是什么意思了,现在可以开始码了.1.创建WidgetXcode菜单 -> File -> New -> Target.. -> 选择Toda... 阅读全文
posted @ 2015-06-13 18:07 wb145230 阅读(2246) 评论(2) 推荐(1) 编辑
摘要: 项目中导入一些开源的类库,里面会爆出一些ARC forbids explicit message send of'retain' 这种问题解决方法:点击项目Target -> 找到"Build Settings" -> 找到"Compile Sources" -> 找到出错的类,在对应类的"Comp... 阅读全文
posted @ 2015-06-12 16:47 wb145230 阅读(2673) 评论(1) 推荐(1) 编辑
摘要: HeaderView.h//// HeaderView.h// 仿面包旅行个人中心//// Created by wb145230@163.com on 15/5/14.// Copyright (c) 2015年 wb145230. All rights reserved.//#impor... 阅读全文
posted @ 2015-06-11 20:35 wb145230 阅读(1111) 评论(0) 推荐(0) 编辑
摘要: 开源插件: VVDocumenter下载地址:https://github.com/onevcat/VVDocumenter-Xcode使用效果:使用方法:在方法写///,效果同上图,下面有方法可以自定义添加注释的方法安装方法:下载用Xcode工程打开,按command + B, Build成功后,... 阅读全文
posted @ 2015-06-10 16:34 wb145230 阅读(5666) 评论(7) 推荐(1) 编辑
摘要: iOS7以后系统提供了显示html标签的方法UIKIT_EXTERN NSString *const NSHTMLTextDocumentType NS_AVAILABLE_IOS(7_0);直接上代码NSString *str = @"满20减5 满40减15,还剩113天";UILabel *l... 阅读全文
posted @ 2015-06-05 19:39 wb145230 阅读(6062) 评论(1) 推荐(0) 编辑
摘要: 第一种: NSArray *array = [NSArray arrayWithObjects:@"Hello",@" ",@"world", @"!", nil]; NSString *printStr = @""; for(int i = 0; i < [array count]; i++){ ... 阅读全文
posted @ 2015-06-01 21:39 wb145230 阅读(10851) 评论(0) 推荐(0) 编辑
摘要: 工作中有一个点击button更新button上文案的需求,用自定义了button可以很简单的实现的这个需求首先写个自定义的buttonCustomButton.h#import typedef NS_ENUM(NSUInteger, CustomButtonStatus){ CustomBut... 阅读全文
posted @ 2015-05-21 17:20 wb145230 阅读(1027) 评论(0) 推荐(0) 编辑