2017/7/30lesson

Jul 30, 2017

新App上传

上传碰见这事:构建的版本上去了,也出现在构建版本里面,不过过没一会就消失了。由于邮箱什么的都不在我这,过了好久才想起来,用的另一个邮箱,于是去看看有没有什么说明:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
Dear developer,
We have discovered one or more issues with your recent delivery for "Color Saga - Coloring book". To process your delivery, the following issues must be corrected:
Non-public API usage:
The app references non-public symbols in XXT: _UICreateCGImageFromIOSurface
If method names in your source code match the private Apple APIs listed above, altering your method names will help prevent this app from being flagged in future submissions. In addition, note that one or more of the above APIs may be located in a static library that was included with your app. If so, they must be removed.
If you think this message was sent in error and that you have only used Apple-published APIs in accordance with the guidelines, send the app's nine-digit Apple ID, along with detailed information about why you believe the above APIs were incorrectly flagged, to appreview@apple.com. For further information, visit the Technical Support Information page.
Missing Info.plist key - This app attempts to access privacy-sensitive data without a usage description. The app's Info.plist must contain an NSCalendarsUsageDescription key with a string value explaining to the user how the app uses this data.
Missing Info.plist key - This app attempts to access privacy-sensitive data without a usage description. The app's Info.plist must contain an NSPhotoLibraryUsageDescription key with a string value explaining to the user how the app uses this data.
Missing Info.plist key - This app attempts to access privacy-sensitive data without a usage description. The app's Info.plist must contain an NSBluetoothPeripheralUsageDescription key with a string value explaining to the user how the app uses this data.
Missing Info.plist key - This app attempts to access privacy-sensitive data without a usage description. The app's Info.plist must contain an NSMicrophoneUsageDescription key with a string value explaining to the user how the app uses this data.
Missing Info.plist key - This app attempts to access privacy-sensitive data without a usage description. The app's Info.plist must contain an NSMotionUsageDescription key with a string value explaining to the user how the app uses this data.
Once these issues have been corrected, you can then redeliver the corrected binary.
Regards,
The App Store team

然后就找到这篇文章,唉,,Reavel我按照教程,说不出问题了呀,但还是出这个问题了。

http://www.cnblogs.com/WayneLiu/p/5251565.html

YTKNetWork 在cacheData 时出错

缘由是cacheData数据没有在拿到缓存之后继续跟服务器获取,查到https://github.com/yuantiku/YTKNetwork/issues/106
处理为下例:

1
2
3
4
5
6
7
8
9
XXHomeCateListApi *cateListApi = [[XXHomeCateListApi alloc]initWithData:@{@"category_id":self.cateModel.id,@"start":input,@"category_name":self.cateModel.name}];
if ([cateListApi loadCacheWithError:nil]) {
[self requestSuccessWithapi:cateListApi subscriber:subscriber];
}
cateListApi = [[XXHomeCateListApi alloc]initWithData:@{@"category_id":self.cateModel.id,@"start":input,@"category_name":self.cateModel.name}];
[cateListApi startWithoutCache];
[cateListApi startWithCompletionBlockWithSuccess:^(__kindof YTKBaseRequest * _Nonnull request) {
} failure:^(__kindof YTKBaseRequest * _Nonnull request) {
}];

InAPPPurchase

这几天有做内购遇到的问题

  • 首先是刚进入先确认一次内购金额和手机当前货币的对比,保存该数据(如果没有获取到则显示默认的美金金额)如
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
+(void)queryProductMoney{
dispatch_async(dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_DEFAULT, 0), ^{
NSArray *googsArray = @[@"0",@"1",@"12"];
NSSet *products = [NSSet setWithArray:googsArray];
[[RMStore defaultStore] requestProducts:products success:^(NSArray *products, NSArray *invalidProductIdentifiers) {
NSLog(@"Products loaded");
NSMutableDictionary *priceDic = [@{} mutableCopy];
[products enumerateObjectsUsingBlock:^(SKProduct* _Nonnull obj, NSUInteger idx, BOOL * _Nonnull stop) {
LxDBAnyVar(obj);
NSString *str = [XXPurchaseRequest currencyPriceWithProduct:obj];
[priceDic setObject:str forKey:obj.productIdentifier];
}];
[USERDEFAULT setObject:priceDic forKey:kAPPProduct];
} failure:^(NSError *error) {
}];
});
}

这样便能显示出你当前要展示的加个信息了。

  • 关于内购时省查最严的就是More Info这个关键词。More Info 填写在有持续性扣费,会更加严格,我们当时在“Mine APP” 备注加上
    we have the purchase info at setting page ,click the "Subscription FAQ"&"About" which user purchase info is display there. when user is about to pay, there have a button name "more info" , user can get enough help with that.

然后在相应位置提供more info。特么注明要有如以下词汇:改词汇来自“ColorSaga”

1
2
3
4
5
6
7
8
9
ColorSaga Premium
- With ColorSaga Premium you can subscribe for daily new picture updates and unlimited access to the full picture catalog
- You'll be able to access all available pictures
- The subscriptions are $2.99 USD weekly, $7.99 USD monthly and $39.99 USD annually or equal to the same price tier that "Apple's App Store Matrix" determines in other currencies.
- You may cancel a subscription or free-trial anytime via the subscription setting through your iTunes account. This must be done 24 hours before the end of the free-trial or subscription period to avoid being charged.
- Subscription automatically renews unless auto-renew is turned off at least 24-hours before the end of the current period. No cancellation of the current subscription is allowed during active subscription period. Any unused portion of a free-trial period, will be forfeited when the user purchases a ColorSaga Premium

Terms of use: http://d.fenfenriji.com/colorx/html/termsOfService.html
Privacy policy: http://d.fenfenriji.com/colorx/html/privacyPolicy.html
  • 技术支持URL

可以使用github 网址或者博客网址,但是一定要有两个因素:1,该为为xxx提供技术支持 2,该含有联系电话或联系邮箱

  • 在上线一两天之后开始做一次应用购买以提升曝光率。小技巧

应用如果有付费情况,然后过几天之后就解开,那么会有一些网站给该应用写报道,称限免应用,这样会出现一波高增长。

CaLayer drawInContext 绘图方法,出现<Error>: CGContextSetFlatness: invalid context 0x0. If you want to see the backtrace, please set CG_CONTEXT_SHOW_BACKTRACE environmental variable.

-(void)drawInContext:(CGContextRef)ctx方法开始第一句加上UIGraphicsPushContext(ctx);,因为当前绘图上下文在上层

UIColor colorWithPattern->提供一个图

最近在做绘图工具,思考要一个东西。即要画一个有texture layer的图,没法输入。一开始有想法说在layer的contents,将图片叠加之后的image填为contents,后来重新看到这个方法即想到了,我可以使用color 的其中一个方法colorWithPattern的方法得到texture 图了。

上海办理公积金

由于公积金可以付房租,对于待上海人来说能缓解很大很大的压力。这里给出前几天去办理大概过程。
地点:##汉中路120号##。地铁下来之后找到#汉中路#出口,走上楼梯之后往右走。大概100米有个不是门的小入口有一个向上的logo,写着上二楼。
上二楼之后填写两张表格,记得人多先取等号机。
需要的材料:
(结婚)结婚证、两人一起去(看情况,那次老婆先去也办成功,尽量一起去吧)、身份证、银行卡(上海银行卡、办理支行,作用是到时办理人员要刷一下)、手机;
未结婚的话,除去结婚证其他同样;
金额:每人(每户)最多2000,按季度发放,家庭办理一个之后,扣完款没有余额了才能办理另一个人的;
办理成功大概需要半个月;
上班时间:上午9点到11点40左右 下午一点半到4点半左右;

通过越狱机iFile 导出手机数据

由于手机不是完美越狱,很久没更新,导入导出数据都巨麻烦。这里提供一个思路。由于iFunbox提供导入导出路径在Home 的Media文件目录。
首先,app 路径在/var/containers/Bundle/Application 里面找到自己要的数据,右上角Edit,右下角Copy。然后点击中间的Home键,翻到Media目录,Paste。
在电脑使用iFunbox 到Media目录,然后导出改文件。导入文件也同理反操作。