Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
红
红星美凯龙管理在线APP IOS
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
张杰
红星美凯龙管理在线APP IOS
Commits
85b971e4
Commit
85b971e4
authored
Jan 30, 2016
by
admin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修复 删除后的图片再次进来后还会出现
parent
f66ec6f5
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
0 deletions
+13
-0
UserInterfaceState.xcuserstate
...userdata/admin.xcuserdatad/UserInterfaceState.xcuserstate
+0
-0
InspectNotUploadViewController.m
...ectDetail/ViewController/InspectNotUploadViewController.m
+13
-0
No files found.
redstar.xcworkspace/xcuserdata/admin.xcuserdatad/UserInterfaceState.xcuserstate
View file @
85b971e4
No preview for this file type
redstar/Classes/Module/Function/WordOfMouth/Inspect/InspectDetail/ViewController/InspectNotUploadViewController.m
View file @
85b971e4
...
@@ -358,6 +358,15 @@
...
@@ -358,6 +358,15 @@
-
(
void
)
deletePicture
:
(
UIButton
*
)
button
-
(
void
)
deletePicture
:
(
UIButton
*
)
button
{
{
NSLog
(
@"从imageName中删除了第%ld张图片"
,(
button
.
tag
-
5521
));
NSLog
(
@"从imageName中删除了第%ld张图片"
,(
button
.
tag
-
5521
));
NSString
*
imageName
=
[
self
.
imageNameArray
objectAtIndex
:(
button
.
tag
-
5521
)];
NSString
*
path0
=
[[
NSHomeDirectory
()
stringByAppendingPathComponent
:
@"Documents"
]
stringByAppendingPathComponent
:[
NSString
stringWithFormat
:
@"%@"
,
_taskModel
.
uuid
]];
NSString
*
paths
=
[
path0
stringByAppendingPathComponent
:
imageName
];
if
([[
NSFileManager
defaultManager
]
fileExistsAtPath
:
paths
])
{
NSError
*
error
;
[[
NSFileManager
defaultManager
]
removeItemAtPath
:
paths
error
:
&
error
];
}
// 从存放所有Image的数组里移除当前点击的Image
// 从存放所有Image的数组里移除当前点击的Image
[
self
.
imageNameArray
removeObjectAtIndex
:(
button
.
tag
-
5521
)];
[
self
.
imageNameArray
removeObjectAtIndex
:(
button
.
tag
-
5521
)];
...
@@ -370,6 +379,10 @@
...
@@ -370,6 +379,10 @@
[
button
removeFromSuperview
];
[
button
removeFromSuperview
];
button
=
nil
;
button
=
nil
;
[
self
removeDeleteButton
];
[
self
removeDeleteButton
];
}
}
-
(
void
)
removeDeleteButton
{
-
(
void
)
removeDeleteButton
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment