码迷,mamicode.com
首页 >  
搜索关键字:uialertview block    ( 16026个结果
IOS时间选择器UIPickerView,ios8中UIView替代UIActionSheet
以前在网上下了个时间选择器Demo,由于封装成UIActionSheet类型,而ios8弃用了UIActionSheet和UIAlertView,不得不对代码进行修改。将封装的UIActionSheet改为UIView,为了多态初始化时添加了枚举(几个时间选择器样式)。 UIActionSheet改为UIView核心代码为以下几个方法: - (void)showInView:(UIView *)view; // UIPicker显示 -(void)hidePickerView; // UIPicker隐藏...
分类:移动开发   时间:2014-11-26 14:26:45    阅读次数:205
[前端設計] 设置float:left后居然没有正确对齐?
select { float:left; } 设置后并没有左对齐!? 换一种思路解决了问题(但是为什么float:left有问题还不清楚) select { display:inline-block; }
分类:其他好文   时间:2014-11-26 13:29:02    阅读次数:169
block的使用实例
发现block写网络时比delegate来的更使用// 获取收藏的彩印数组- (void)getMyFavorList:(void(^)(NSMutableArray *arr, BOOL success))block{// 成功block(myArr, YES);// 失败block(nil, N...
分类:其他好文   时间:2014-11-26 11:14:02    阅读次数:149
判断当前网络是否连接 使用的是block
// 判断当前网络是否连接- (void)reachabilityNetwork:(void(^)(BOOL networkExist))block{ Reachability *r = [ReachabilityreachabilityWithHostName:Baidu_URL]; swit.....
分类:其他好文   时间:2014-11-26 11:09:15    阅读次数:198
iOS- 自定义UIView (测试block和代理)
#import typedef void(^compeletionHandler) (NSInteger selectButtonIndex);@class ZSDCustom;@protocol ZSDCustomDelegate -(void)showCustomView:(ZSDCustom ...
分类:移动开发   时间:2014-11-26 10:56:45    阅读次数:190
iOS判断字符串是否包含表情字符
1 - (BOOL)isContainsEmoji:(NSString *)string { 2 __block BOOL isEomji = NO; 3 [string enumerateSubstringsInRange:NSMakeRange(0, [string lengt...
分类:移动开发   时间:2014-11-26 10:43:35    阅读次数:311
使用jquery控制display属性
//隐藏$("#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
CSS_浮动与定位的不同之处
BLOCK块级元素 加 float浮动后 脱离块级占用 进入文档影响占用 ? BLOCK块级元素 加 absolute绝对定位后 脱离 块级 脱离文档级占用
分类:Web程序   时间:2014-11-25 23:53:47    阅读次数:231
DataNode与NameNode交互机制相关代码分析
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 中代理类汇总
ios代理类总结一下。今后多看看UITextViewDelegateUIToolbarDelegateUITextInputDelegateUITextFieldDelegateUIWebViewDelegateNSLayoutManagerDelegate//UIActionSheet//UIActionSheetDelegate要放弃//UIAlertView要放弃//UIAlertViewDelegate//优先使用preferred//UIAlertCon..
分类:移动开发   时间:2014-11-25 18:51:17    阅读次数:194
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!