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