连击 天
fork: star:
`+ (NSString *)distinguishWebsiteStr:(NSString *)sourceStr{ NSString *targetStr = nil; NSError *error; NSString *regulaStr = @"((http[s]{0,1}|ftp)://[a-zA-Z0-9\\.\\-]+\\.([a-zA-...
NSString * htmlString = [NSString stringWithFormat:@"计划时长:%ld天 <a href=\"http://www.baidu.com\">百度</a> 计划时长 <a href=\"http://www.baidu.com\">谷歌</a>",(long)self.sche...
//获取当前的UIViewController + (UIViewController *)currentVCWithCurrentView:(UIView *)view{ UIViewController *result = nil; for (UIView* next = [view superview]; next; next = ne...
//实现一个计划设置时间的选择 //上个界面是时间列表的其中一个cell点击进入此页面 //.h文件 #import "MMViewController.h" @protocol ScheuduleStepTimeSettingDelegate <NSObject> -...
- (UIImage *)stretchableImageWithLeftCapWidth:(NSInteger)leftCapWidth topCapHeight: (NSInteger)topCapHeight 这个函数是UIImage的一个实例函数,它的功能是创建一个内容可拉伸,而...
//添加阴影 UIimageView *imageView = [[UIImageView alloc ] init]; imageView.layer.shadowColor = [UIColor blackColor].CGColor; imageView.layer.shadowOffset = CGSizeMak...
//判断字符串为空 #define EMPTY_STRING(string) \ ([string isKindOfClass:[NSNull class]] || string == nil || [string isEqualToString:@""]) //判断数组是...
//iOS常用动画代码 UIImageView* bolingbolingImageView = [[UIImageView alloc]init]; [self.view addSubview:bolingbolingImag...
- (UIImage*) createImageWithColor:(UIColor*)color { CGRect rect=CGRectMake(0,0, 1, 1); UIGraphicsBeginImageContext(rect.size); CGContextRef conte...
//刷新指定的indexPath NSIndexPath *reloadIndexPath = [NSIndexPath indexPathForRow:indexRow inSection:0]; [scheduleDetailListTableView reloadRowsA...
//思路:正常SearchBar有一个灰色环绕边框,在searchBar外层加一个白色的背景,这个背景只够包围searchBar的搜索框部分 //同时调节searchBar的frame让它正好在白色背景呢,这...
// index.html //html代码 <html> <body> <div id="content" contenteditable="false" style="font-family: Helvetica"> <a href="id:abc" style="text-dec...
#import "PostDetailInputCommentView.h" @interface PostDetailInputCommentView() <UITextFieldDelegate> @end @implementation PostDetailInputCommentView{ MMButton *...
//获取iOS设备的各种信息 NSString *device_token = [[[UIDevice currentDevice] identifierForVendor] UUIDString]; NSString *device_os = [[UIDev...
原则上iOS的沙箱原理,是阻止一个app去访问其他app的资源乃至是系统底层的资源的但是我们可以通过一种变相的方式:通过对应的URL模式和其他程序进行通讯. iOS应用之间的调用步骤: 一, 调用自...
**iOS时间格式化方法** //时间转换方法 // long nowT = time(NULL); 获取当前时间 - (NSString *)revertTimeFormat:(long)timesp{ NSDate *data = [NSDate dateW...
关于各种内存的解释,来源于stackoverflow Wired : This refers to kernel code and such. Memory that should not ever be moved out of the RAM. Also know as ...
1、iOS 6 cell自定义分割线,在xib中会造成适配问题(不显示) //适配iOS 6 [(UIView *)[self viewWithTag:lineTag] removeFromSuperview]; UIColor *LCN = [[ThemeManager sharedT...
在iOS中view的frame属性使用地太频繁了,尤其是调UI的时候。我们知道,正常情况下我们无法对frame的某个属性(x,y,width,height等)进行单独修改,比如: someView.frame.x = 100; 这种方式是...
没有更多内容
加载失败,请刷新页面
文章删除后无法恢复,确定删除此文章吗?
动弹删除后,数据将无法恢复
评论删除后,数据将无法恢复