Giter Site home page Giter Site logo

Comments (11)

steipete avatar steipete commented on September 21, 2024

Hmm. We still use it in iOS 8 and it works (I did the changes as above in PSPDFKit).

The view controller needs to be first responder though.

from psmenuitem.

andreasmpet avatar andreasmpet commented on September 21, 2024

Hm, maybe I'm just using it wrong.

Here's a pastebin of my class.
It's a helper that will automatically pop up a menu item when the clipboard value has changed since last time the menu was shown.

http://pastebin.com/FfSFRV4Y

from psmenuitem.

andreasmpet avatar andreasmpet commented on September 21, 2024

So, what you're saying is that the UIViewController I'm presenting this from must still implement - canBecomeFirstResponder { return YES; }

from psmenuitem.

steipete avatar steipete commented on September 21, 2024

yep!

from psmenuitem.

andreasmpet avatar andreasmpet commented on September 21, 2024

Btw, it would be nice if the compilation errors were fixed in the public CocoaPod. Can you do it, or should I submit a PR?

from psmenuitem.

andreasmpet avatar andreasmpet commented on September 21, 2024

I made it work, but I had to register the class of the UIViewController with [PSMenuItem installMenuHandlerForObject:myViewController]; which seems to contradict your sample in the "How to Use" section of the readme, where you register the handler for a variable called "button". That lead me to believe that any object could be the menu handler.

Sorry for the nagging, thanks a lot for this useful repo!

from psmenuitem.

andreasmpet avatar andreasmpet commented on September 21, 2024

Haha, I found I was using the wrong version of your repo. Cocoapods.org reports version 0.0.1 as the latest version, but your podspec says 1.0.0.

Double-oops!

from psmenuitem.

steipete avatar steipete commented on September 21, 2024

Ah, never cared much about CocoaPods since we don't have any use for it at PSPDFKit... If you make a PR that fixes this I'll merge and re-tag it.

from psmenuitem.

mrmarcsmith avatar mrmarcsmith commented on September 21, 2024

Is it safe to use this project on iOS 8 now?

from psmenuitem.

steipete avatar steipete commented on September 21, 2024

We use this in PSPDFKit all the time, works fine.

from psmenuitem.

andreasmpet avatar andreasmpet commented on September 21, 2024

It works, just have to make sure you point to the right version when using
cocoapods

On Wed, Apr 22, 2015, 11:56 mrmarcsmith [email protected] wrote:

Is it safe to use this project on iOS 8 now?


Reply to this email directly or view it on GitHub
#6 (comment).

from psmenuitem.

Related Issues (5)

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.