Comments (3)
Ok deal I will try to do it ASAP. Can I take your opinion? I think we can solve it as mentioned here:
http://useyourloaf.com/blog/openurl-deprecated-in-ios10/
func open(scheme: String) {
if let url = URL(string: scheme) {
if #available(iOS 10, *) {
UIApplication.shared.open(url, options: [:],
completionHandler: {
(success) in
print("Open \(scheme): \(success)")
})
} else {
let success = UIApplication.shared.openURL(url)
print("Open \(scheme): \(success)")
}
}
}
// Typical usage
open(scheme: "tweetbot://timeline")
from appz.
Hmm, this is not ideal.
We should allow users to pass in a completion handler
--
Maz Jaleel
iOS Engineer, Game Developer, Python hacker
On September 21, 2016 at 11:00:24 AM, Mariam AlJamea ([email protected]) wrote:
Ok deal I will try to do it ASAP. Can I take your opinion? I think we can solve it as mentioned here:
http://useyourloaf.com/blog/openurl-deprecated-in-ios10/
`func open(scheme: String) {
if let url = URL(string: scheme) {
if #available(iOS 10, *) {
UIApplication.shared.open(url, options: [:],
completionHandler: {
(success) in
print("Open (scheme): (success)")
})
} else {
let success = UIApplication.shared.openURL(url)
print("Open (scheme): (success)")
}
}
}
// Typical usage
open(scheme: "tweetbot://timeline")`
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or mute the thread.
from appz.
I will try with it to find a perfect solution.
Sent from my iPhone
On Sep 21, 2016, at 11:01 AM, Maz Jaleel [email protected] wrote:
Hmm, this is not ideal.
We should allow users to pass in a completion handlerMaz Jaleel
✌️
iOS Engineer, Game Developer, Python hackerOn September 21, 2016 at 11:00:24 AM, Mariam AlJamea ([email protected]) wrote:
Ok deal I will try to do it ASAP. Can I take your opinion? I think we can solve it as mentioned here:
http://useyourloaf.com/blog/openurl-deprecated-in-ios10/`func open(scheme: String) {
if let url = URL(string: scheme) {
if #available(iOS 10, *) {
UIApplication.shared.open(url, options: [:],
completionHandler: {
(success) in
print("Open (scheme): (success)")
})
} else {
let success = UIApplication.shared.openURL(url)
print("Open (scheme): (success)")
}
}
}// Typical usage
open(scheme: "tweetbot://timeline")`—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or mute the thread.—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub, or mute the thread.
from appz.
Related Issues (20)
- missing argument label in call (have actions, expected options) HOT 2
- A suggestion: supported platform versions HOT 4
- Support for native clock app HOT 1
- QueryParam's order HOT 10
- Swinject HOT 2
- Google Drive opens Safari only HOT 2
- URL scheme for Google Calendar HOT 2
- More actions to Strava app HOT 1
- Google Maps HOT 1
- LSApplicationQueriesSchemes in plist HOT 1
- Settings System ? HOT 1
- swift 2.3, swift 3 HOT 5
- Two apps not installed with pod install HOT 6
- Just the needed app HOT 1
- Streamline the process of adding new apps HOT 5
- Instagram query parameters HOT 1
- Trigger opening in Docs@Work HOT 2
- FourSquare error HOT 9
- Update the pod version HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from appz.