IOS 开发灵异事件 长久更新

1. tableView 刷新某个区时会有抖动,刷新整个表却没有问题

2.关于UILabel设置了attributedText富文本之后超出显示后没有省略号,解决办法

设置完 self.titleLabel.attributedText = attributedString之后设置

self.titleLabel.lineBreakMode = NSLineBreakByTruncatingTail

3.在viewDidLoad方法里面创建view并添加到window上,但有时候不显示。

这个问题在于self.view的创建的时机,通过在viewDidLoad方法里输出self.view的父视图发现是空的,也就是此时self.view还没添加到父视图,所以你添加的view被self.view所覆盖。解决办法在viewDidAppear方法添加。

4.ios 11自定义view的UIBarButtonItem,如果使用自动布局,那么约束之后view的size为0。解决办法UIBarButtonItem * item = [[UIBarButtonItem alloc]initWithCustomView:_leftView];

self.navigationItem.leftBarButtonItem = item;

[self performSelector:@selector(creatLeftView) withObject:nil afterDelay:0.2];

延迟一段时间再创建view的子视图

5.打包提交App Store成功,但一直不显示构建版本。

今天提交app简直日了狗了,死活没有构建版本。查看了开发者邮箱(就是你账号邮箱)反现了苹果给我的反馈

1.Dear developer,

We have discovered one or more issues with your recent delivery for "门诊新视野". To process your delivery, the following issues must be corrected:

Missing Info.plist key - This app attempts to access privacy-sensitive data without a usage description. The app's Info.plist must contain an NSCameraUsageDescription key with a string value explaining to the user how the app uses this data.

Though you are not required to fix the following issues, we wanted to make you aware of them:

Missing App Store Icon - iOS Apps must include a 1024x1024px App Store Icon in PNG format. Without providing the icon in the Asset Catalog or via iTunes Connect, apps cannot be submitted for App Review or Beta App Review. Refer to https://developer.apple.com/ios/human-interface-guidelines/icons-and-images/app-icon/ for more information.

Once the required corrections have been made, you can then redeliver the corrected binary.

Regards,

The App Store team

这么长的话其实就是两点。一没有添加NSCameraUsageDescription权限,二没有1024x1024px App Store Icon,这个是ios11有的。第一个问题我压根就没那个权限,为什么要添加,搞不定,算了它是老大,他说的算,我加就是了,然后再加一张1024x1024图标再提交就ok了

symbol(s) not found for architecture x86_64

今天被呆萌的同事坑了一把,交接我一个项目,然后各种编译错误,他在电脑上鼓捣了好一会,不行,然后我自己都各种百度,结果还是不行,最终我猜测是不是模拟器不支持,于是用手机跑了一把,居然可以了,然后他说忘记有个库只支持手机运行,我差点上去就是一个大脚。


显示包内容,用文本编辑器打开,搜索teamID,全部删了

tableView  reloadData之后自动滑到了顶部??

遇到一个很蛋疼的问题,tableview上拉加载之后刷新tableview,然后就自动滑到了顶部,最后找到是因为iOS 11 tableview的新特性导致的,需要设置

self.tableView.estimatedRowHeight = 0;

self.tableView.estimatedSectionHeaderHeight = 0;

self.tableView.estimatedSectionFooterHeight = 0;

ERROR ITMS-90060: "This bundle is invalid. The value for key CFBundleShortVersionString '1.9.9.1' in the Info.plist file must be a period-separated list of at most three non-negative integers. Please find more information about CFBundleShortVersionString at https://developer.apple.com/documentation/bundleresources/information_property_list/cfbundleshortversionstring"

ERROR ITMS-90060: "This bundle is invalid. The value for key CFBundleShortVersionString '1.9.9.1' in the Info.plist file must be a period-separated list of at most three non-negative integers. Please find more information about CFBundleShortVersionString at https://developer.apple.com/documentation/bundleresources/information_property_list/cfbundleshortversionstring"



你可能感兴趣的:(IOS 开发灵异事件 长久更新)