Giter Site home page Giter Site logo

Crash on iPad about karte HOT 5 OPEN

julianpomper avatar julianpomper commented on May 14, 2024
Crash on iPad

from karte.

Comments (5)

kiliankoe avatar kiliankoe commented on May 14, 2024 1

The first part is the same as #8. presentPicker will not work directly on iPad, please use createPicker instead and handle the presentation manually.

Regarding the second issue, I'm not quite sure about the error code πŸ˜• Could it be that you might be missing the Info.plist strings to query for the apps?

from karte.

julianpomper avatar julianpomper commented on May 14, 2024

Yes first part was the same. Thank you!

The second one is no issue, i just thought it might be helpful. Everything works fine but as I present the picker, these logs appear in the console. Just wanted you to know that. πŸ‘

from karte.

kiliankoe avatar kiliankoe commented on May 14, 2024

Did you add the URLs to your app's Info.plist though as the README suggests? Maybe the apps shown in the logs are missing there? That's my only guess currently where that message could be coming from πŸ™ˆ

from karte.

julianpomper avatar julianpomper commented on May 14, 2024

Yes they are there

from karte.

seljabali avatar seljabali commented on May 14, 2024

Confirmed bug. Running into the same issue on iPad with project setup properly with Info.plist added.

Fix is straight forward:

let picker: UIAlertController = Karte.createPicker(destination: someLocation)
if let popoverPresentationController = picker.popoverPresentationController {
    popoverPresentationController.sourceView = self.view
    popoverPresentationController.sourceRect = CGRect(x: self.view.bounds.midX, y: self.view.bounds.midY, width: 0, height: 0)
    popoverPresentationController.permittedArrowDirections = []
}
present(picker, animated: true)

from karte.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.