修复bug
This commit is contained in:
@@ -47,19 +47,21 @@ UIKIT_EXTERN NSString * adImageName;
|
||||
- (void) configBugly {
|
||||
|
||||
BuglyConfig *config = [[BuglyConfig alloc] init];
|
||||
config.channel = @"App Enterprise";
|
||||
config.blockMonitorEnable = YES; // 卡顿监控开关,默认关闭
|
||||
|
||||
config.blockMonitorTimeout = 5;
|
||||
config.unexpectedTerminatingDetectionEnable = YES; // 非正常退出事件记录开关,默认关闭
|
||||
|
||||
#ifdef DEBUG
|
||||
config.debugMode = YES; // debug 模式下,开启调试模式
|
||||
config.channel = [YYUtility getAppSource];; config.blockMonitorEnable = YES; // 卡顿监控开关,默认关闭
|
||||
config.reportLogLevel = BuglyLogLevelVerbose; // 设置打印日志级别
|
||||
[Bugly startWithAppId:@"86cf73b8d5" config:config];
|
||||
#else
|
||||
config.debugMode = NO; // release 模式下,关闭调试模式
|
||||
config.channel = [YYUtility getAppSource];; config.blockMonitorEnable = NO; // 卡顿监控开关,默认关闭
|
||||
config.reportLogLevel = BuglyLogLevelWarn; // 设置自定义日志上报的级别,默认不上报自定义日志
|
||||
[Bugly startWithAppId:@"0fcba36f9a" config:config];
|
||||
NSString *buylyKey = isEnterprise == NO ? @"5334684d86" : @"d65df59a68";
|
||||
[Bugly startWithAppId:buylyKey config:config];
|
||||
#endif
|
||||
|
||||
}
|
||||
|
@@ -96,6 +96,8 @@
|
||||
</dict>
|
||||
<key>NSCameraUsageDescription</key>
|
||||
<string>“Piko”需要您的同意,才可以访问进行拍照并上传您的图片,然后展示在您的个人主页上,便于他人查看</string>
|
||||
<key>NSLocationWhenInUseUsageDescription</key>
|
||||
<string>“Piko”需要您的同意,才可以进行定位服务,推荐附近好友</string>
|
||||
<key>NSLocalNetworkUsageDescription</key>
|
||||
<string>此App将可发现和连接到您所用网络上的设备。</string>
|
||||
<key>NSMicrophoneUsageDescription</key>
|
||||
|
@@ -372,13 +372,15 @@
|
||||
CGFloat margin = 150;
|
||||
CGFloat x = scrollView.contentOffset.x;
|
||||
if ((x - index * self.bounds.size.width) > margin || (x - index * self.bounds.size.width) < - margin) {
|
||||
SDBrowserImageView *imageView = _scrollView.subviews[index];
|
||||
if (imageView.isScaled) {
|
||||
[UIView animateWithDuration:0.5 animations:^{
|
||||
imageView.transform = CGAffineTransformIdentity;
|
||||
} completion:^(BOOL finished) {
|
||||
[imageView eliminateScale];
|
||||
}];
|
||||
if(index < _scrollView.subviews.count){
|
||||
SDBrowserImageView *imageView = _scrollView.subviews[index];
|
||||
if (imageView.isScaled) {
|
||||
[UIView animateWithDuration:0.5 animations:^{
|
||||
imageView.transform = CGAffineTransformIdentity;
|
||||
} completion:^(BOOL finished) {
|
||||
[imageView eliminateScale];
|
||||
}];
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
@@ -2,6 +2,8 @@
|
||||
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
||||
<plist version="1.0">
|
||||
<dict>
|
||||
<key>aps-environment</key>
|
||||
<string>development</string>
|
||||
<key>com.apple.developer.applesignin</key>
|
||||
<array>
|
||||
<string>Default</string>
|
||||
|
@@ -2,6 +2,8 @@
|
||||
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
||||
<plist version="1.0">
|
||||
<dict>
|
||||
<key>aps-environment</key>
|
||||
<string>development</string>
|
||||
<key>com.apple.developer.applesignin</key>
|
||||
<array>
|
||||
<string>Default</string>
|
||||
|
Reference in New Issue
Block a user