Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
O
Opple-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
张杰
Opple-iOS
Commits
dace5719
Commit
dace5719
authored
May 27, 2016
by
勾芒
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修复AirPrint打印异常
parent
59aef7fb
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
17 additions
and
16 deletions
+17
-16
OrderdetailsViewController.m
Lighting/Class/OrderdetailsViewController.m
+16
-15
LaunchScreen.storyboard
Lighting/Lighting/Base.lproj/LaunchScreen.storyboard
+1
-1
No files found.
Lighting/Class/OrderdetailsViewController.m
View file @
dace5719
...
@@ -389,12 +389,22 @@
...
@@ -389,12 +389,22 @@
#pragma mark -打印订单
#pragma mark -打印订单
-
(
void
)
AirprintButtonClick
:
(
UIButton
*
)
button
-
(
void
)
AirprintButtonClick
:
(
UIButton
*
)
button
{
{
[
self
DownloadPDF
:
^
(
id
return
Value
)
{
[
self
DownloadPDF
:
^
(
id
Value
)
{
[
self
callAirprintWithURL
:[
NSURL
URLWithString
:
@"http://139.196.195.30:8090/opple-web/export/pdf/A0516052616540001.pdf"
]
SuccessBlock
:
^
{
[
self
CreateMBProgressHUDLoding
];
[
self
SuccessMBProgressView
:
@"打印完成"
];
[[
NetworkRequestClassManager
Manager
]
DownloadPDFdatasWithURL
:
Value
WithReturnValueBlock
:
^
(
id
returnValue
)
{
}
ErrorBlock
:^
{
[
self
ErrorMBProgressView
:
@"打印失败"
];
[
self
RemoveMBProgressHUDLoding
];
[
self
callAirprintWithdata
:
returnValue
SuccessBlock
:
^
{
[
self
SuccessMBProgressView
:
@"打印完成"
];
}
ErrorBlock
:^
{
[
self
ErrorMBProgressView
:
@"打印失败"
];
}];
}
WithErrorCodeBlock
:^
(
id
errorCodeValue
)
{
}
WithFailureBlock
:^
(
id
error
)
{
[
self
RemoveMBProgressHUDLoding
];
}];
}];
}];
}];
}
}
...
@@ -409,16 +419,7 @@
...
@@ -409,16 +419,7 @@
[
self
RemoveMBProgressHUDLoding
];
[
self
RemoveMBProgressHUDLoding
];
NSString
*
url
=
[
NSString
stringWithFormat
:
@"%@%@"
,
PDFSERADDRESS
,
returnValue
[
@"data"
]];
NSString
*
url
=
[
NSString
stringWithFormat
:
@"%@%@"
,
PDFSERADDRESS
,
returnValue
[
@"data"
]];
success
(
url
);
success
(
url
);
// [[NetworkRequestClassManager Manager] DownloadPDFdatasWithURL:url WithReturnValueBlock:^(id returnValue) {
//
// [self RemoveMBProgressHUDLoding];
// success(returnValue);
//
// } WithErrorCodeBlock:^(id errorCodeValue) {
//
// } WithFailureBlock:^(id error) {
// [self RemoveMBProgressHUDLoding];
// }];
}
WithErrorCodeBlock
:^
(
id
errorCodeValue
)
{
}
WithErrorCodeBlock
:^
(
id
errorCodeValue
)
{
[
self
RemoveMBProgressHUDLoding
];
[
self
RemoveMBProgressHUDLoding
];
...
...
Lighting/Lighting/Base.lproj/LaunchScreen.storyboard
View file @
dace5719
...
@@ -20,7 +20,7 @@
...
@@ -20,7 +20,7 @@
</viewController>
</viewController>
<placeholder
placeholderIdentifier=
"IBFirstResponder"
id=
"iYj-Kq-Ea1"
userLabel=
"First Responder"
sceneMemberID=
"firstResponder"
/>
<placeholder
placeholderIdentifier=
"IBFirstResponder"
id=
"iYj-Kq-Ea1"
userLabel=
"First Responder"
sceneMemberID=
"firstResponder"
/>
</objects>
</objects>
<point
key=
"canvasLocation"
x=
"5
3"
y=
"375
"
/>
<point
key=
"canvasLocation"
x=
"5
20"
y=
"307
"
/>
</scene>
</scene>
</scenes>
</scenes>
</document>
</document>
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