码迷,mamicode.com
首页 >  
搜索关键字:view composer    ( 38669个结果
Quartz 2D--长方形和线条绘图
今天原本想模仿2048 游戏的。 但是在设计背景环境时,涉及到绘图的知识!于是就开始对绘图进行了一翻学习。 若想自己绘图必须 写自己的View(继承UICView);然后重写UIView 中的drawRect:rect 方法 -(void)drawRect:(CGRent)rect{ //...
分类:其他好文   时间:2014-06-04 19:09:33    阅读次数:243
UISlider与UISwitch控件
1、UISlider控件就像其名字一样,是一个像滑动变阻器的控件:上图中的圆圈可以移动,它处在不同的位置,这个UISlider会有不同的值。接下来的例子是关于UISlider的简单使用。(1)假设我们已经建立了一个Single View Application,打开ViewController.xi...
分类:其他好文   时间:2014-06-03 13:59:43    阅读次数:303
Picking Values with the UIPicker View
ProblemYou want to allow the users of your app to select from a list of values.SolutionUse the UIPickerView class.DiscussionA picker view is a graphic...
分类:其他好文   时间:2014-06-03 12:22:56    阅读次数:289
Creating a Map View
ProblemYou want to instantiate and display a map on a viewSolutionCreate an instance of the MKMapView class and add it to a view or assign it as a sub...
分类:其他好文   时间:2014-06-03 12:19:39    阅读次数:314
Objective C - 4 - 下载图片并且加载到View
#import "LoadInternetImageViewController.h"@interface LoadInternetImageViewController ()@property (weak, nonatomic) IBOutlet UIImageView *imageView;@e...
分类:其他好文   时间:2014-05-30 20:28:32    阅读次数:347
OE中admin的内置帐号
在OE中admin的内置帐号为SUPERUSER_ID,可以用来直接做判断登录用户是否admin[python] view plaincopyprint?fromopenerpimportSUPERUSER_IDifuid==SUPERUSER_ID:returnNone
分类:其他好文   时间:2014-05-30 07:22:02    阅读次数:214
ViewPager 限制左右滚动
importandroid.content.Context;importandroid.support.v4.view.ViewPager;importandroid.util.AttributeSet;importandroid.view.MotionEvent;/****@类名CustomVie...
分类:其他好文   时间:2014-05-29 19:24:15    阅读次数:341
《黄聪:手机移动站SEO优化教程》4、如何实现手机移动网站和PC站点的自主适配
视频地址:http://www.tudou.com/programs/view/v4Hur5vjav4/
分类:移动开发   时间:2014-05-29 18:18:00    阅读次数:335
ViewHolder模式简洁写法
参考网址:http://blog.csdn.net/hmily7532361/article/details/18368235 在安卓中 自定义Adapter时,使用ViewHolder可缓存每个Item的View,减少一些不必要的操作,提高性能。在网上看到一种比较简洁的写法,避免每个自定义的Ada...
分类:其他好文   时间:2014-05-29 17:02:49    阅读次数:291
ios中创建可以拖动的view原理和实现详解
有时候我们会需要在界面上拖动view;uiview是继承于uiresponder的,所以可以响应触摸相关的事件。重点是以下一组方法:- (void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event- (void)touchesMoved...
分类:移动开发   时间:2014-05-29 15:23:07    阅读次数:247
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!