效果如下:ViewController.h1 #import 2 3 @interface ViewController : UIViewController4 @endViewController.m 1 #import "ViewController.h" 2 3 @interface Vie....
分类:
其他好文 时间:
2015-06-15 01:41:03
阅读次数:
142
那么如何自定义按钮点击的有效区域呢,其实很简单,只要重写一个函数即可:- (BOOL)pointInside:(CGPoint)point withEvent:(UIEvent *)event系统发生触摸事件的时候会从window到父控件到子控件一个个检测触摸点是否在其中,如果在其中,则返回YES,...
分类:
移动开发 时间:
2015-06-08 00:52:00
阅读次数:
286
1,准备素材新建一个文件夹,命名为UITexture。2,创建Atlas在Project面板中,进入UITexture 文件夹,选中这两张图片,然后 右键-->【NGUI】-->【Atlas Maker】,之后你会看到 Atlas Maker 的界面:在 Atlas Maker 界面中,点击【Cre...
分类:
其他好文 时间:
2015-06-05 22:27:45
阅读次数:
278
1、添加按钮在 functions.php文件里面添加下面代码:add_action('media_buttons', 'add_my_media_button');function add_my_media_button() { echo 'Add my media';}添加后,登录后台编辑...
分类:
其他好文 时间:
2015-06-04 13:23:46
阅读次数:
134
引子在Geogebra中也提供了自定义按钮或类似宏的功能。虽然简单,但是容易忘记,所以,找一个例子记录下来以备不时之需。准备学习新东西,最好是从理解和解决实际问题实际案例入手,比较好的例子是用Geogebra绘制一幅五星红旗。从网络上找到五星红旗设计草图如下,包括长宽比例,星的位置和方向等详细信息。
分析从图上发现:
五星红旗长和宽的比例是30:20;
有五星的区域仅占左上角的1/4相似矩形;
大...
分类:
其他好文 时间:
2015-05-28 23:12:22
阅读次数:
634
android自定义按钮1》定义按钮布局文件<?xmlversion="1.0"encoding="utf-8"?><LinearLayoutxmlns:android="http://schemas.android.com/apk/res/android"androidrientation="horizontal"android:layout_gravity="center"android:layout_width="wrap_content"android:l..
分类:
移动开发 时间:
2015-05-28 18:23:46
阅读次数:
199
今天写一个项目,在用到datagrid的时候突然发现加载操作列中的自定义按钮出来问题,经过一番研究,原来这么简单。话不多说,上图//获取选中行审核functionChecker(indexDiv){$(‘#grid‘).datagrid(‘selectRow‘,indexDiv);//获取选中行varrows=$(‘#grid‘).datagrid(‘getSelected‘..
分类:
其他好文 时间:
2015-05-14 20:51:16
阅读次数:
146
在Android开发应用中,默认的Button是由系统渲染和管理大小的。然后,我们在产品的实际开发中,需要对默认Button进行美化,比如自定义背景的按钮、自定义图片按钮等,以此来改善UI的美观并且提高用户的体验度。
Button控件常用属性如下:
一、自定义按钮背景
1.修改系统默认Button的背景颜色
(1)在drawable资源目录下按钮下后的效果变化描述文件dra...
分类:
其他好文 时间:
2015-05-12 13:40:23
阅读次数:
199
[cell.myignore addTarget:self action:@selector(removeCell:) forControlEvents:UIControlEventTouchUpInside];
#pragma mark - 点击删除按钮删除Cell
- (void)removeCell:(UIButton *)btn{
NSArray *visibleCells=...
分类:
移动开发 时间:
2015-05-08 13:07:38
阅读次数:
748
1 @implementation ViewController 2 3 - (void)viewDidLoad { 4 [super viewDidLoad]; 5 // Do any additional setup after loading the view, typic...
分类:
其他好文 时间:
2015-05-04 23:40:16
阅读次数:
210