摘要: 1.到开发者中心生成AppID与merchantID,将两者进行绑定; 2.到工程中打开applePay的功能,如下图 之后项目会多一个Applepay的配置文件ApplePayYasin.entitlements 需要引入的库: Xcode7.0以上不需要再手动添加需要引用的库了,只需要导入头文件 阅读全文
posted @ 2016-03-11 12:08 向日向暖 阅读(999) 评论(0) 推荐(0)
摘要: MVC模式: model:创建一个baseModel,创建其他子类对象 //根据传过来的数据源(字典)判断,并且进行对应Model映射+ (instancetype)modelWithDictionary:(NSDictionary *)dict{ BaseModel * model = nil; 阅读全文
posted @ 2016-03-07 18:27 向日向暖 阅读(397) 评论(0) 推荐(0)
摘要: int year = 0,month = 0,day = 0; int i= 1; int febDay = 28; while(i){ printf("按xxxx-xx-xx的形式输入生日:"); scanf("%d-%d-%d",&year,... 阅读全文
posted @ 2015-10-01 14:20 向日向暖 阅读(328) 评论(0) 推荐(0)
摘要: int max=0,middle=0,min=0; int num1=0,num2=0,num3=0; printf("请输入三个数:"); scanf("%d %d %d",&num1,&num2,&num3); max=num1>num2?num1:num2; mi... 阅读全文
posted @ 2015-10-01 14:14 向日向暖 阅读(787) 评论(0) 推荐(0)
摘要: //int year=0,month =0,day = 0;// printf("按照xxxx-x-xx的形式输入生日:\n");// scanf("%d-%d-%d",&year,&month,&day);// if (month<9||(month==9&&day<=28)) ... 阅读全文
posted @ 2015-10-01 13:57 向日向暖 阅读(5725) 评论(0) 推荐(0)