Commit 291eef32 authored by Tiank's avatar Tiank

no message

parent 882aa97e
Pipeline #94 failed with stages
......@@ -34,7 +34,10 @@
self.window = [[UIWindow alloc]initWithFrame:[[UIScreen mainScreen]bounds]];
self.window.backgroundColor = [UIColor whiteColor];
//设置SDImageCache 缓存策略 减少内存使用,之前详情页会有大量图片导致打开占用大量内存 滑动崩溃
[[SDImageCache sharedImageCache] setShouldDecompressImages:NO];
[[SDWebImageDownloader sharedDownloader] setShouldDecompressImages:NO];
[[SDImageCache sharedImageCache] setShouldCacheImagesInMemory:NO];
[UploadManager getAppOption];
//版本更新
[self enterpriseUpdate];
......
......@@ -27,7 +27,7 @@
- (void)viewDidLoad {
[super viewDidLoad];
NSLog(@"InspectionAnswerViewController 初始化");
}
#pragma mark - 父视图传入的section闭合控制数组
......@@ -51,11 +51,12 @@
- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath {
InspectionAnswerTableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:[InspectionAnswerTableViewCell className] forIndexPath:indexPath];
cell.answerModel = self.datasArray[indexPath.section];
cell.indexPath = indexPath;
return cell;
}
- (UIView *)tableView:(UITableView *)tableView viewForHeaderInSection:(NSInteger)section{
InspectionAnswerSectionView *headerView = [tableView dequeueReusableCellWithIdentifier:[InspectionAnswerSectionView className]];
......
......@@ -19,7 +19,6 @@ static NSString * const reuseIdentifier = @"InspectionPhotoCollectionViewCell";
- (void)viewDidLoad {
[super viewDidLoad];
[self setUpCollectionView];
}
......@@ -46,7 +45,8 @@ static NSString * const reuseIdentifier = @"InspectionPhotoCollectionViewCell";
- (UICollectionViewCell *)collectionView:(UICollectionView *)collectionView cellForItemAtIndexPath:(NSIndexPath *)indexPath {
InspectionPhotoCollectionViewCell *cell = [collectionView dequeueReusableCellWithReuseIdentifier:reuseIdentifier forIndexPath:indexPath];
[cell.inspectionImageView sd_setImageWithURL:[NSURL URLWithString:[self.attachmentArray yx_objectAtIndex:indexPath.item] [@"fileUrl"]] placeholderImage:KNODATAIMAGE];
NSString *path = [NSString stringWithFormat:@"%@?x-oss-process=image/resize,l_100",[self.attachmentArray yx_objectAtIndex:indexPath.item][@"fileUrl"]];
[cell.inspectionImageView sd_setImageWithURL:[NSURL URLWithString:path] placeholderImage:KNODATAIMAGE];
return cell;
}
......@@ -54,17 +54,11 @@ static NSString * const reuseIdentifier = @"InspectionPhotoCollectionViewCell";
{
PYPhotoBrowseView *photoBroseView = [[PYPhotoBrowseView alloc] init];
photoBroseView.currentIndex = indexPath.item;
NSMutableArray *imageArray = [NSMutableArray array];
int number = (int)[collectionView numberOfItemsInSection:indexPath.section];
for (int index = 0;index < number;index++){
NSIndexPath *cellIndex = [NSIndexPath indexPathForItem:index inSection:indexPath.section];
InspectionPhotoCollectionViewCell *cell = (InspectionPhotoCollectionViewCell *)[collectionView cellForItemAtIndexPath:cellIndex];
[imageArray addObject:cell.inspectionImageView];
};
// for (InspectionPhotoCollectionViewCell *cell in collectionView.visibleCells) {
// [imageArray addObject:cell.inspectionImageView];
// }
photoBroseView.sourceImgageViews = imageArray;
NSMutableArray *imageURLArray = [NSMutableArray array];
for (int index = 0;index < self.attachmentArray.count;index++){
[imageURLArray addObject:[self.attachmentArray yx_objectAtIndex:index][@"fileUrl"]];
}
photoBroseView.imagesURL = imageURLArray;
[photoBroseView show];
}
......
......@@ -49,8 +49,7 @@
}
#pragma mark - 图片管理
- (void)addPhotoManager
{
- (void)addPhotoManager{
self.photoManager = [InspectionPhotoViewController viewControllerWithStoryBoardType:STORYBOARD_TYPE_PATROLINSPECTRESULT];
self.photoManager.view.backgroundColor = [UIColor clearColor];
[self.contentView addSubview:self.photoManager.view];
......
<?xml version="1.0" encoding="UTF-8"?>
<document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="13771" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" colorMatched="YES">
<document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="14113" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" colorMatched="YES">
<device id="retina4_7" orientation="portrait">
<adaptation id="fullscreen"/>
</device>
<dependencies>
<deployment identifier="iOS"/>
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="13772"/>
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="14088"/>
<capability name="Aspect ratio constraints" minToolsVersion="5.1"/>
<capability name="Constraints with non-1.0 multipliers" minToolsVersion="5.1"/>
<capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
......@@ -854,7 +854,6 @@
<constraint firstAttribute="height" relation="greaterThanOrEqual" constant="21.5" id="0Nh-vV-b3M"/>
</constraints>
<fontDescription key="fontDescription" type="system" pointSize="16"/>
<color key="textColor" white="0.0" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
<nil key="highlightedColor"/>
</label>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="参考图片:" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="Z9s-Sg-EJe">
......
......@@ -19,7 +19,7 @@
<key>CFBundlePackageType</key>
<string>APPL</string>
<key>CFBundleShortVersionString</key>
<string>1.4.3</string>
<string>1.4.5</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleVersion</key>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment