会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
平淡的我
博客园
首页
新随笔
联系
管理
订阅
2014年8月9日
正则表达式
摘要: 1.什么是正则表达式 简单的说,正则表达式是一种可以用于文字模式匹配和替换的强有力的工具。是由一系列普通字符和特殊字符组成的能明确描述文本字符串的文字匹配模式。正则表达式并非一门专用语言,但也可以看作是一种语言,它可以让用户通过使用一系列普通字符和特殊字符构建能明确描述文本字符串的匹配模式。除了简单...
阅读全文
posted @ 2014-08-09 19:34 平淡的我
阅读(416)
评论(0)
推荐(0)
2014年8月4日
常用正则表达式
摘要: ```objc下面是一些常用的正则表达式//邮箱 + (BOOL) validateEmail:(NSString *)email { NSString *emailRegex = @"[A-Z0-9a-z._%+-]+@[A-Za-z0-9.-]+\\.[A-Za-z]{2,4}";...
阅读全文
posted @ 2014-08-04 19:05 平淡的我
阅读(119)
评论(0)
推荐(0)
2014年7月18日
音乐播放器(主界面)
摘要: #import #import @interface MjMusicViewController : UIViewController{ NSInteger controlPlayStyle; NSInteger controlPlay; NSMutableArray *timeA...
阅读全文
posted @ 2014-07-18 20:18 平淡的我
阅读(371)
评论(0)
推荐(0)
GCD(1)
摘要: ```objc#import "ViewController.h"int threadNumber = 0;int newThingNumber = 0;@interface ViewController ()@end@implementation ViewController- (void)vie...
阅读全文
posted @ 2014-07-18 09:53 平淡的我
阅读(302)
评论(1)
推荐(0)
GCD(2)
摘要: ```objc#import "ViewController.h"@interface ViewController ()@property (weak, nonatomic) IBOutlet UIActivityIndicatorView *action;@end@implementation ...
阅读全文
posted @ 2014-07-18 09:51 平淡的我
阅读(149)
评论(0)
推荐(0)
2014年7月16日
KVO机制
摘要: #import #import "Person.h"#import "BankAccount.h"int main(int argc, const char * argv[]){// 实例化一个人, 表示是这个名字叫wangdelong的人, 准备在银行开户 Person *person = [[...
阅读全文
posted @ 2014-07-16 17:59 平淡的我
阅读(171)
评论(0)
推荐(0)
手势(5)——利用GestureRecognizer
摘要: #import "MJmainViewController.h"@interface MJmainViewController ()@end@implementation MJmainViewController- (id)initWithNibName:(NSString *)nibNameOrN...
阅读全文
posted @ 2014-07-16 14:18 平淡的我
阅读(210)
评论(0)
推荐(1)
手势(4)判断放大缩小
摘要: #import "MJcostom.h"@implementation MJcostom- (id)initWithFrame:(CGRect)frame{ self = [super initWithFrame:frame]; if (self) { self.backgroundColor=[U...
阅读全文
posted @ 2014-07-16 14:10 平淡的我
阅读(332)
评论(0)
推荐(0)
手势(3)view随手势移动
摘要: #import "QYCustomView.h"/*#define HOR_SWIPE_MIN 20 //水平上,当低于这个值的时候, 不认为他是一个横扫的手势#define VAR_SWIPE_MAX 40 //在垂直上,设置这误差范围,如果大于这个值的话, 横扫无效*/@implementati...
阅读全文
posted @ 2014-07-16 14:07 平淡的我
阅读(351)
评论(0)
推荐(0)
手势(2)——单击,双击,判断左右划
摘要: #import "QYCustomView.h"#define HOR_SWIPE_MIN 20 //水平上,当低于这个值的时候, 不认为他是一个横扫的手势#define VAR_SWIPE_MAX 40 //在垂直上,设置这误差范围,如果大于这个值的话, 横扫无效@implementation Q...
阅读全文
posted @ 2014-07-16 14:04 平淡的我
阅读(360)
评论(0)
推荐(0)
下一页
公告