Toggle navigation
Toggle navigation
This project
Loading...
Sign in
iOS
/
asi-http-request
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Authored by
Adam Wulf
2013-12-26 15:41:05 -0600
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
50889999446727f1e8e49dd9d18d812d47f0aa0a
50889999
1 parent
022a3947
fixed ios7 warnings for dismissModalViewControllerAnimated vs dismissViewControl…
…lerAnimated:completion: etc
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
Classes/ASIAuthenticationDialog.m
Classes/ASIAuthenticationDialog.m
View file @
5088999
...
...
@@ -217,9 +217,9 @@ static const NSUInteger kDomainSection = 1;
+
(
void
)
dismiss
{
if
([
sharedDialog
respondsToSelector
:
@selector
(
presentingViewController
)])
[[
sharedDialog
presentingViewController
]
dismiss
ModalViewControllerAnimated
:
YES
];
[[
sharedDialog
presentingViewController
]
dismiss
ViewControllerAnimated
:
YES
completion
:
nil
];
else
[[
sharedDialog
parentViewController
]
dismiss
ModalViewControllerAnimated
:
YES
];
[[
sharedDialog
parentViewController
]
dismiss
ViewControllerAnimated
:
YES
completion
:
nil
];
}
-
(
void
)
viewDidDisappear
:
(
BOOL
)
animated
...
...
@@ -237,9 +237,9 @@ static const NSUInteger kDomainSection = 1;
[[
self
class
]
dismiss
];
}
else
{
if
([
self
respondsToSelector
:
@selector
(
presentingViewController
)])
[[
self
presentingViewController
]
dismiss
ModalViewControllerAnimated
:
YES
];
[[
self
presentingViewController
]
dismiss
ViewControllerAnimated
:
YES
completion
:
nil
];
else
[[
self
parentViewController
]
dismiss
ModalViewControllerAnimated
:
YES
];
[[
self
parentViewController
]
dismiss
ViewControllerAnimated
:
YES
completion
:
nil
];
}
}
...
...
@@ -315,7 +315,7 @@ static const NSUInteger kDomainSection = 1;
}
#endif
[[
self
presentingController
]
presentModalViewController
:
self
animated
:
YES
];
[[
self
presentingController
]
presentViewController
:
self
animated
:
YES
completion
:
nil
];
}
#pragma mark button callbacks
...
...
Please
register
or
login
to post a comment