摘要: 本节目录retainassigncopyretain先建一个student类,和一个Book类,学生拥有有一本书Book.m#import "Book.h"@implementation Book-(void)dealloc{ NSLog(@"Book 被销毁"); [super dealloc];}@endStudent.h,nonatomic先不理,后面来讲#import #import "Book.h"@interface Student : NSObject@property(nonatomic,retain)Book *bo 阅读全文
posted @ 2014-03-17 18:06 Vincent_Guo 阅读(367) 评论(0) 推荐(0) 编辑
摘要: 本节内容dealloc方法retain方法一、dealloc方法当一个对象被销毁释放时,会调用dealloc方法在Staff类中重写下dealloc方法,记住,最后得调用父亲的dealloc方法,因为父类可能还有些对象有释放#import "Staff.h"@implementation Staff-(void)dealloc{ NSLog(@"Staff 被销毁"); [super dealloc];}@end#import #import "Staff.h"int main(int argc, const char * argv[ 阅读全文
posted @ 2014-03-17 16:46 Vincent_Guo 阅读(297) 评论(0) 推荐(0) 编辑
摘要: 本节目录@property@synthesize@property前面写一个age属性,又要写set/get方法,比较麻烦,@property就是简化操作的Staff.h#import @interface Staff : NSObject@property int age;@end上面的代码等效于在头文件声明了age的set/和get方法-(void)setAge:(int)newAge;-(int)age;@synthesize在头文件声明了age的set/get方法后,在点.m文件中要实现get/set方法,@synthesize就是自动来为你做这事的。Staff.m#import &q 阅读全文
posted @ 2014-03-17 16:11 Vincent_Guo 阅读(189) 评论(0) 推荐(0) 编辑
摘要: 1. Terms and conditions(法律与条款)1.1As a developer of applications for the App Store you are bound by the terms of theProgram License Agreement(PLA), Human Interface Guidelines (HIG), and any other licenses or contracts between you and Apple. The following rules and examples are intended to assist you 阅读全文
posted @ 2014-03-11 21:57 Vincent_Guo 阅读(641) 评论(0) 推荐(1) 编辑
摘要: 前言:个人开发者发布应用到APP STORE需要几个步骤在certificates,identifiers,&profiles中生成production证书登录iTunes Connect添加要发布的应用信息打在Xcode使用Porduct->Archiver进行打包发布一、在certificates,identifiers,&profiles中生成production证书 这里生成证书的步骤就不再写了,大家可以参照博客的苹果开发者平台-《测试证书》生成流程只要把里面的Development改成 Production就可以了二、登录iTunes Connect添加要发布的 阅读全文
posted @ 2014-03-02 17:48 Vincent_Guo 阅读(1719) 评论(0) 推荐(0) 编辑
只有注册用户登录后才能阅读该文。 阅读全文
posted @ 2014-02-27 21:39 Vincent_Guo 阅读(15) 评论(0) 推荐(0) 编辑
摘要: 前言:想在苹果设备上测试开发好的IOS程序或者上传应用程序到APP STORE都需要在苹果开发者平台中生成证书 这里讲解测试证书的生成并在xcode上运行应用程序到真机上1.首先注册苹果开发者账号(这里省略,各位自己注册)2.注册开发者账号后用VISA卡或者MasterCar购买99美元的服务(公司的299美元) 提醒:这里说几个要注意的地方 a.在购买99美元的服务时,填写的定单都必须是英文的,定单的地址信息,名字都用中文的拼音 b.下单成功后,会在2天内从你的卡里扣除99美元,成功扣钱后,会收到一封邮件,告诉你已经 付款成功,不用理这邮件。然后再等一封激活邮件,激活... 阅读全文
posted @ 2014-02-25 23:02 Vincent_Guo 阅读(10739) 评论(0) 推荐(0) 编辑
摘要: 1、布局对话框XML 2、在values下的styles添加下面格式 3、创建一个继承Dialog的类 1 /** 2 * 自定议对话框 3 * 4 * @author vincent 5 * 6 */ 7 public class CoolCDialog extends Dialog { 8 private CoolCDialogClickLisener coolCDialogClickLisener; 9 private Coo... 阅读全文
posted @ 2014-02-24 18:29 Vincent_Guo 阅读(212) 评论(0) 推荐(0) 编辑
摘要: Direct usage of 'isa' 将 YES(treat as error) 改为NO 阅读全文
posted @ 2014-01-18 23:54 Vincent_Guo 阅读(193) 评论(0) 推荐(0) 编辑
摘要: --登录数据库psql -h localhost -U pvincent -d chezhu--显示数据库vincent=# \l --切换数据库vincent=# \c chezhu You are now connected to database "chezhu" as user "vincent".--显示表chezhu=# \dt List of relations Schema | Name | Type | Owner --------+-----------------------... 阅读全文
posted @ 2013-12-31 10:28 Vincent_Guo 阅读(184) 评论(0) 推荐(0) 编辑