1,利用combobox创建色带,首先draw private void comboBox1_DrawItem(object sender, DrawItemEventArgs e) { Rectangle rec= e.Bounds; rec.Width = rec.Width /array.Le...
分类:
其他好文 时间:
2014-09-30 22:51:30
阅读次数:
311
使用第三方:MJRefresh
NSString*constMJCollectionViewCellIdentifier=@"Cell";
-(BOOL)application:(UIApplication*)applicationdidFinishLaunchingWithOptions:(NSDictionary*)launchOptions
{
self.window=[[UIWindowalloc]initWithFrame:[[UIScreenmainScreen]bounds]];
..
分类:
其他好文 时间:
2014-09-25 12:34:19
阅读次数:
480
using System.Windows.Forms;获取屏幕分辨率 int SH = Screen.PrimaryScreen.Bounds.Height; int SW = Screen.PrimaryScreen.Bounds.Width;获取窗口居中Top和Left int thisH=10...
分类:
其他好文 时间:
2014-09-24 19:42:57
阅读次数:
197
bounds的有以下两个特点:
1. 它可以修改自己坐标系的原点位置,进而影想到“子view”的显示位置。这个作用更像是移动原点的意思。
2. bounds,它可以改变的frame。如果bounds比frame大。那么frame也会跟着变大。这个作用更像边界和大小的意思。
可以推测一下,setBound可以用于view的滑动,手势动作。...
分类:
移动开发 时间:
2014-09-24 17:26:17
阅读次数:
250
//是否为iphone5#define DEVICE_IS_IPHONE5 ([[UIScreen mainScreen] bounds].size.height == 568)用这个宏就可以做判断if(DEVICE_IS_IPHONE5){}else
分类:
其他好文 时间:
2014-09-24 13:29:56
阅读次数:
159
#pragma mark 生成image
- (UIImage *)makeImageWithView:(UIView *)view
{
CGSize s = view.bounds.size;
//
下面方法,第一个参数表示区域大小。第二个参数表示是否是非透明的。如果需要显示半透明效果,需要传NO,否则传YES。第三个参数就是屏幕密度了,关键就是第三个参数。
...
分类:
移动开发 时间:
2014-09-23 14:44:54
阅读次数:
238
CABasicAnimation基本动画没有真正的修改属性值创建并指定修改的属性KeyPath:CALayer属性名,不是所有的属性名都可以,只有在头文件中出现的animatable的属性才可以可以修改属性的属性,例如bounds.sizeCABasicAnimation*basic=[CABasicAnimationanimationWithKeyPath:@"bounds"];..
分类:
其他好文 时间:
2014-09-18 03:17:43
阅读次数:
203
创建动画CAKeyframeAnimation*keyFrame=[CAKeyframeAnimationanimationWithKeyPath:@"bounds"];修改属性keyFrame.duration=3;keyFrame.values=@[[NSValuevalueWithCGRect:CGRectMake(0,0,200,200)],[NSValuevalueWithCGRect:CGRectMake(0,0,250,250)],[NSValuevalueWithCGRect:..
分类:
其他好文 时间:
2014-09-18 03:17:33
阅读次数:
177
CABasicAnimation*basic=[CABasicAnimationanimationWithKeyPath:@"bounds"];basic.duration=5;basic.fromValue=[NSValuevalueWithCGRect:CGRectMake(0,0,200,200)];basic.toValue=[NSValuevalueWithCGRect:CGRectMake(0,0,300,300)];CAKeyframeAnimation*keyFrame=[CAKeyframe..
分类:
其他好文 时间:
2014-09-18 03:17:13
阅读次数:
205
/常用的IOS开发宏#pragma mark - 界面 部分#define NavigationBar_HEIGHT 44 //导航控制器#define SCREEN_WIDTH ([UIScreen mainScreen].bounds.size.width) //屏幕宽度#define ...
分类:
其他好文 时间:
2014-09-16 15:30:10
阅读次数:
188