摘要:
frame属性:可以使用该属性改变尺寸和位置 相对于父视图bounds:改变尺寸 相对自身center:改变视图的位置alpha:改变视图的透明度backgroundColor:改变视图的背景contentStretch:改变视图内容如何拉伸//开始动画[UIView beginAnimations 阅读全文
摘要:
iOS9以后GDataXMLNode修改方式 阅读全文
摘要:
//1.获取网咯路径 NSString *path = @"http://1.studyios.sinaapp.com/getAllClass.php"; //2.获取URL NSURL *url = [NSURL URLWithString:path]; //3.创建请求命令 NSURLReque 阅读全文
摘要:
-(NSArray *)getAllStundets { //1创建临时集合 存储学生信息 NSMutableArray *arr = [NSMutableArray arrayWithCapacity:20]; //2打开数据库 sqlite3 *sql = [DBManager openDB]; 阅读全文
摘要:
primary key 维一键 不为空 autoinc 自动增长 在前面数自动加一 阅读全文
摘要:
@interface Student : NSObject @property (strong,nonatomic) NSString *name; @property (assign,nonatomic) int age; @property (assign,nonatomic) char sex 阅读全文
摘要:
@implementation ViewController - (void)viewDidLoad { [super viewDidLoad]; self.textF = [[UITextField alloc] initWithFrame:CGRectMake(100, 100, 100, 40 阅读全文
摘要:
@interface MyCellTableViewCell : UITableViewCell //在单元格中添加子视图 @property (strong,nonatomic) UILabel *MyLable; //为子视图赋值 -(void)setCellinfo:(NSDictionary 阅读全文
摘要:
@interface RootTableViewController : UITableViewController @property (strong,nonatomic) NSArray *arrTitle; @property (strong,nonatomic) NSArray *arrIm 阅读全文
摘要:
self.view.backgroundColor = [UIColor grayColor]; self.text = [[UITextField alloc] initWithFrame:CGRectMake(100, 100, 200, 110)]; self.text.text = @"空间 阅读全文