码迷,mamicode.com
首页 >  
搜索关键字:uikit    ( 1245个结果
UIKit - UIButton 按钮操作
UIButton 按钮操作/* 一 UIVIew 常见属性 1.frame 位置和尺寸(以父控件的左上角为原点(0,0)) 2.center 中点 (以父控件的左上角为原点(0,0)) 3.bounds 位置和尺寸(以自己的左上角为原点 (0,0)) 4.transform 形变属性(缩放,旋转) 5.backgroundColor 背景颜色 6.tag 标识(父控件可以根据这个标识找...
分类:其他好文   时间:2015-04-24 10:39:02    阅读次数:167
UIKit - UIView动画扩展块(UIViewAnimationWithBlocks)
UIView类函数原型@interface UIView(UIViewAnimationWithBlocks)+ (void)animateWithDuration:(NSTimeInterval)duration delay:(NSTimeInterval)delay options:(UIViewAnimationOptions)options animations:(void (^)(void...
分类:其他好文   时间:2015-04-23 15:39:04    阅读次数:269
bug-Assertion failure in [MyClass layoutSublayersOfLayer:]
这是在iOS7上,tableview 的sectionHeaderView中报错 *** Assertion failure in -[****.****UITVSectionHeader_Team layoutSublayersOfLayer:], /SourceCache/UIKit/UIKit-2935.137/UIView.m:8794 libc++abi.dylib: termina...
分类:其他好文   时间:2015-04-22 11:45:03    阅读次数:226
iOS:UILabel设置不同字体颜色
NSString *str = @"0123456789”;//label内容 NSMutableAttributedString *str1 = [[NSMutableAttributedString alloc] initWithString:str]; //根据下标索引设置字体颜色 [str addAttribute:NSForegroundColorAttributeName value:...
分类:移动开发   时间:2015-04-21 16:06:16    阅读次数:165
自定义视图窗口控件
#import<UIKit/UIKit.h>@interfaceLTView:UIView#warning创建需要的属性@property(nonatomic,retain)UILabel*mLabel;@property(nonatomic,retain)UITextField*mTextField;@end#import"LTView.h"@implementationLTView#warning第一步,重写初始化方法-(instancetype)initW..
分类:其他好文   时间:2015-04-21 11:28:04    阅读次数:135
iOS:UICollectionView的子类化创建
UICollectionView的创建基本与UITableView的创建方式相同 首先,创建继承于UICollectionView的子类 然后在初始化方法中设置一些属性 - (id)initWithFrame:(CGRect)frame { UICollectionViewFlowLayout *flowLayout = [[UICollectionViewFlowLayout al...
分类:移动开发   时间:2015-04-20 18:37:23    阅读次数:135
iOS:UICollectionView布局问题
具体问题一:       布局正确,但是cell上的UI控件都跑到了屏幕外面,如图所示: cell上有两个控件,问题demo如下,主要出在第一个self.centerX上,去掉这个代码,重新写一个居中的方法 _headImgView.centerX = self.centerX; _nameLabel.centerX = _headImgView.centerX;...
分类:移动开发   时间:2015-04-20 18:33:16    阅读次数:202
Swift之键盘类型与常见的键盘隐藏方法
// //  ViewController.swift //  UITextField键盘类型 // //  Created by mac on 15/4/19. //  Copyright (c) 2015年 mac. All rights reserved. // import UIKit class ViewController: UIViewCont...
分类:编程语言   时间:2015-04-20 09:33:49    阅读次数:684
IOS CocoaTouch UIKit 框架
新建一个Button并绑定点击事件 1 // 创建Button对象,初始化位置大小(位置坐标为左上角点和右下角点) 2 UIButton *btn = [[UIButton alloc] initWithFrame: CGRectMake(100, 100, 120, 110)]; 3 4 // ....
分类:移动开发   时间:2015-04-20 00:11:48    阅读次数:128
iOS SDK Release Notes for iOS 8.3 Beta 4 节选(UIKit)
UIKit Note 注意 When linking against iOS 8.3, any code that relies on layout information (such as the frame) of a UIButton subview when the button is not in the window hierarchy will need to...
分类:移动开发   时间:2015-04-16 14:21:27    阅读次数:164
1245条   上一页 1 ... 92 93 94 95 96 ... 125 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!