Opening a url is failing in Swift breakpointing inside the callback and logging success shows false. I added itms-apps to my plist: LSApplicationQueriesSchemes and put this in my app delegate: func application(_ app: UIApplication, open url: URL, options: [UIApplicationOpenURLOptionsKey : Any] = [:]) -> Bool { return true } func moreTapped() { let url = NSURL(string: "itms-apps://itunes.com/developer/quantum-productions/id979315877") if #available(iOS 10.0, *) { UIApplication.shared.open(url! as URL, options: [:], completionHandler: {(success: Bool) in }) } else { UIApplication.shared.openURL(url! as URL) } } Are you testing on a real device? – rmaddy Jun 21 at 23:57 I try on a device, get "Cannot Connect to App Store". Device is online ...
Why is the base type not returned when no generic type specified? [duplicate] This question already has an answer here: I have a code like this: public class A<T extends String> { T field; List<T> fields; public T getField() { return field; } public List<T> getFields() { return fields; } public static void test(){ A a = new A(); String s = a.getField(); List<String> ss = a.getFields(); } } Why when creating A with no generic type getFiled returns String but getFileds returns List<Object> ? A getFiled String getFileds List<Object> I have to define A as A<String> a = new A<>() for this to work properly. A A<String> a = new A<>() Thanks, This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question. By not specifying any generic type, you are decl...
Video Channel: AsapSCIENCE Why are you Netflix and Chilling by yourself? Get tickets for SIDENOTE PODCAST LIVE: http://www.hahaha.com/en/show/sidenote APPROACHING CUTE STRANGERS IN PUBLIC (Social Experiment): http://pokeclip.com/Jqkx7aeACrs Thanks so much to Ask Kimberly! We have a podcast! Download on iTunes: http://apple.co/2y5xqI0 Created by: Mitchell Moffit and Gregory Brown Written by: Jodre Datu & Rachel Salt Illustrated by: Max Simmons Edited by: Sel Ghebrehiwot Narrated by: Kimberly Moffit FOLLOW US! Instagram and Twitter: @whalewatchmeplz and @mitchellmoffit Clickable: http://bit.ly/16F1jeC and http://bit.ly/15J7ube AsapINSTAGRAM: http://instagram.com/asapscience/ Facebook: http://facebook.com/AsapSCIENCE Twitter: http://twitter.com/AsapSCIENCE Tumblr: http://asapscience.tumblr.com SNAPCHAT US 'whalewatchmeplz' and 'pixelmitch' Created by Mitchell Moffit (twitter @mitchellmoffit) and Gregory Brown (twitter @whalewatchmeplz). Send us stuff! ASAPSCIENCE INC....
Comments
Post a Comment