以前在网上下了个时间选择器Demo,由于封装成UIActionSheet类型,而ios8弃用了UIActionSheet和UIAlertView,不得不对代码进行修改。将封装的UIActionSheet改为UIView,为了多态初始化时添加了枚举(几个时间选择器样式)。
UIActionSheet改为UIView核心代码为以下几个方法:
- (void)showInView:(UIView *)view; // UIPicker显示
-(void)hidePickerView; // UIPicker隐藏...
分类:
移动开发 时间:
2014-11-26 14:26:45
阅读次数:
205
select { float:left; } 设置后并没有左对齐!? 换一种思路解决了问题(但是为什么float:left有问题还不清楚) select { display:inline-block; }
分类:
其他好文 时间:
2014-11-26 13:29:02
阅读次数:
169
发现block写网络时比delegate来的更使用// 获取收藏的彩印数组- (void)getMyFavorList:(void(^)(NSMutableArray *arr, BOOL success))block{// 成功block(myArr, YES);// 失败block(nil, N...
分类:
其他好文 时间:
2014-11-26 11:14:02
阅读次数:
149
// 判断当前网络是否连接- (void)reachabilityNetwork:(void(^)(BOOL networkExist))block{ Reachability *r = [ReachabilityreachabilityWithHostName:Baidu_URL]; swit.....
分类:
其他好文 时间:
2014-11-26 11:09:15
阅读次数:
198
#import typedef void(^compeletionHandler) (NSInteger selectButtonIndex);@class ZSDCustom;@protocol ZSDCustomDelegate -(void)showCustomView:(ZSDCustom ...
分类:
移动开发 时间:
2014-11-26 10:56:45
阅读次数:
190
1 - (BOOL)isContainsEmoji:(NSString *)string { 2 __block BOOL isEomji = NO; 3 [string enumerateSubstringsInRange:NSMakeRange(0, [string lengt...
分类:
移动开发 时间:
2014-11-26 10:43:35
阅读次数:
311
//隐藏$("#id").css('display','none');//显示$("#id").css('display','block');或$("#id")[0].style.display = 'none';$("#id")返回的是JQuery它是个集合肯定有display属性$("#id")...
分类:
Web程序 时间:
2014-11-26 01:03:43
阅读次数:
360
BLOCK块级元素 加 float浮动后 脱离块级占用 进入文档影响占用 ? BLOCK块级元素 加 absolute绝对定位后 脱离 块级 脱离文档级占用
分类:
Web程序 时间:
2014-11-25 23:53:47
阅读次数:
231
HDFSFederation是为解决HDFS单点故障而提出的NameNode水平扩展方案,该方案允许HDFS创建多个Namespace以提高集群的扩展性和隔离性。在Federation中新增了block-pool的概念,block-pool就是属于单个Namespace的一组block,每个DataNode为所有的block-pool存储block,可以理解bloc..
分类:
其他好文 时间:
2014-11-25 19:03:31
阅读次数:
253
ios代理类总结一下。今后多看看UITextViewDelegateUIToolbarDelegateUITextInputDelegateUITextFieldDelegateUIWebViewDelegateNSLayoutManagerDelegate//UIActionSheet//UIActionSheetDelegate要放弃//UIAlertView要放弃//UIAlertViewDelegate//优先使用preferred//UIAlertCon..
分类:
移动开发 时间:
2014-11-25 18:51:17
阅读次数:
194