Comments (11)
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.
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.
from psmenuitem.
So, what you're saying is that the UIViewController I'm presenting this from must still implement - canBecomeFirstResponder { return YES; }
from psmenuitem.
yep!
from psmenuitem.
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.
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.
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.
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.
Is it safe to use this project on iOS 8 now?
from psmenuitem.
We use this in PSPDFKit all the time, works fine.
from psmenuitem.
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
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 psmenuitem.