今天原本想模仿2048 游戏的。
但是在设计背景环境时,涉及到绘图的知识!于是就开始对绘图进行了一翻学习。 若想自己绘图必须 写自己的View(继承UICView);然后重写UIView
中的drawRect:rect 方法 -(void)drawRect:(CGRent)rect{ //...
分类:
其他好文 时间:
2014-06-04 19:09:33
阅读次数:
243
1、UISlider控件就像其名字一样,是一个像滑动变阻器的控件:上图中的圆圈可以移动,它处在不同的位置,这个UISlider会有不同的值。接下来的例子是关于UISlider的简单使用。(1)假设我们已经建立了一个Single
View Application,打开ViewController.xi...
分类:
其他好文 时间:
2014-06-03 13:59:43
阅读次数:
303
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
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
#import
"LoadInternetImageViewController.h"@interface LoadInternetImageViewController
()@property (weak, nonatomic) IBOutlet UIImageView *imageView;@e...
分类:
其他好文 时间:
2014-05-30 20:28:32
阅读次数:
347
在OE中admin的内置帐号为SUPERUSER_ID,可以用来直接做判断登录用户是否admin[python] view
plaincopyprint?fromopenerpimportSUPERUSER_IDifuid==SUPERUSER_ID:returnNone
分类:
其他好文 时间:
2014-05-30 07:22:02
阅读次数:
214
importandroid.content.Context;importandroid.support.v4.view.ViewPager;importandroid.util.AttributeSet;importandroid.view.MotionEvent;/****@类名CustomVie...
分类:
其他好文 时间:
2014-05-29 19:24:15
阅读次数:
341
视频地址:http://www.tudou.com/programs/view/v4Hur5vjav4/
分类:
移动开发 时间:
2014-05-29 18:18:00
阅读次数:
335
参考网址:http://blog.csdn.net/hmily7532361/article/details/18368235 在安卓中
自定义Adapter时,使用ViewHolder可缓存每个Item的View,减少一些不必要的操作,提高性能。在网上看到一种比较简洁的写法,避免每个自定义的Ada...
分类:
其他好文 时间:
2014-05-29 17:02:49
阅读次数:
291
有时候我们会需要在界面上拖动view;uiview是继承于uiresponder的,所以可以响应触摸相关的事件。重点是以下一组方法:-
(void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event-
(void)touchesMoved...
分类:
移动开发 时间:
2014-05-29 15:23:07
阅读次数:
247