- 博客(4)
- 资源 (20)
- 收藏
- 关注
转载 iOS中,MRC和ARC混编
如果一个工程为MRC,其中要添加ARC的文件:选择target -> build phases -> compile sources -> 单击ARC的文件将compiler flags设置为:-fobjc-arc如果一个工程为ARC,其中要添加MRC的文件:同样的路径,然后单击MRC的文件将compiler flags设置为:-fno-objc-arc。
2015-03-31 15:41:05 645
原创 java.lang.ClassCastException: android.widget.RelativeLayout$LayoutParams cannot be cast to android.w
使用baseadapter出现java.lang.ClassCastException: android.widget.RelativeLayout$LayoutParams cannot be cast to android.widget.AbsListView$LayoutParams错误,一般是你自己的实现baseadapter的方法中public
2015-03-31 14:12:22 1739
原创 点击navigationitem上的按钮,弹出view,类似弹出菜单
推荐示例点击打开链接,下载需要引入的MLKMenuPopover.h/m文件示例图片如下:1.引入MLKMenuPopover.h/m文件,MLKMenuPopover.h在上述连接中,自己下载。2.实现MLKMenuPopoverDelegate协议3.定义@property(nonatomic,strong) MLKMenuPopover *menuPopover;
2015-03-05 18:02:15 1397
原创 UITextField的点击事件
需求:点击UITextField不弹出键盘,显示自定义的方法中的东西。1.实现协议UITextFieldDelegate2.设置代理self.text.delegate=self;3.实现代理中的方法:-(void)textFieldDidBeginEditing:(UITextField*)textField{ [textField resignFirstRespon
2015-03-05 17:30:53 15292
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人