how do I launch Evernote to view a notebook - ios

I'm developing an iOS application and would like to connect it with Evernote.
I've looked through the Evernote SDK and sample code, and see a viewNoteInEvernote method to view a note in Evernote.
But how do I view a notebook?
Specifically, I see a ENNoteViewRequest object. What do I need to create a ENNotebookViewRequest?
Thanks!
Drew

You can use the ENSearchViewRequest object instead and pass it search grammar : notebook:"Food" .
Here is an example : https://gist.github.com/mustafa/d3c8c6938db45af0667f
Or, alternatively you can use the findNotesMetadata API to display all the notes within your app itself.

Related

How to create a selection list in KivyMD

I am trying to create a menu/selection to choose certain values from a list using KivyMD. I want it to look similar to how these lists look on IOS apps. I've included an image from the 'Fitbit' app for reference of what I'm trying to replicate.
the type of menu/selection I'm looking for
Cheers
Specifically, there is no such implementation of time picker in KivyMD. There is a Picker class - https://kivymd.readthedocs.io/en/latest/components/pickers/

Annotations in QLPreviewController

In offical apps by Apple (for example Mail) is option to make annotations to PDF via this set of buttons:
I would assume that this is some kind of modified QLPreviewController or similar controller. Unfortunately I have not found any documentation about it. Do exist any official way to implement this to own app?
Thanks!

iOS 11 File Provider fetchThumbnailsForItemIdentifiers method is not calling

I implemented File Provider for new Files app on iOS 11. I want to show my files on remote, in Files app. I can enumarete items and show in Files app but iOS shows default thumbnail for images. So I need to show my own thumbnails for images.
fetchThumbnailsForItemIdentifiers:requestedSize:perThumbnailCompletionHandler:completionHandler:
Apple explain this method like following;
For local files, the system automatically provides thumbnails for
supported content types, and calls a Quick Look Preview extension to
get thumbnails for custom types.
However, the system cannot generate thumbnails for remote items.
Instead, it calls this method to request thumbnails for items stored
on a remote sever.
I implemented that method and make api call for the thumbnails. But that method is not called so i cannot show my own thumbnails for the images.
Why this method is not called? Is there anyone have an idea about that?
Thanks.
Seems you need to update the item's(ProviderItem) versionIdentifier property for the method to get called.The Apple documentation states that too. Was stuck in the same situation ;-)
Hope this helps!

Load multiple images from web directory in Objective C

I require a simple but potentially complex solution that I can't seem to find code that translates from Android for my iOS version APP.
I simply need a imageview grid such as shown here from a single web directory: https://www.youtube.com/watch?v=fIX4SnBLaZg
I have a working version on Android but can't seem to figure it out on Objective C.
My working version uses JSON to find each file in the directory and associated text, then simply adds each entry to the grid. The iOS version doesn't need to be as complicated if anyone has any examples?
Would anyone have any examples/snippets/APIs of implementing something like this into iOS?
Or even a simplified version such as only images from a directory. Simply have the thread read an entire folder from URL, file by file, and populate it in imageview's. Then once a user clicks on an image, simply view it full screen?
For your requirement you can use collection view . Please follow the below tutorial
uicollectionview-basic-tutorial
And to get images of jpg stored in bundle under folder named Images
NSArray *imagesOfjpgType = [[NSBundle mainBundle]pathsForResourcesOfType:#"jpg"
inDirectory:#"Images"];
To customize the cell to your design Please use the below code
https://stackoverflow.com/a/16579595/1142743
Also Please find sample from above tutorial which has a label below the image
https://www.dropbox.com/s/1uymyrwtx2yn9fs/RecipePhoto.zip?dl=0

iOS - import file from another app into my app

I want to import a document from another app into my app like it's done in MS Outlook iOS app when you click the paperclip in an email. Then you get a list of apps (dropbox, google drive etc) + recent documents and you can select a document.
How is this done / do I need to use the app-extensions for this ?
thanks
Frank van Vliet
this is the scope of App Extensions. To add an App Extension to your Project you have to navigate to File -> New -> Target and the App Extension you are looking for is called Document Provider. Please first check the WWDC Video on best practice for App Extensions and the App Extension Programming Guide. It will help you to develop the understanding of this Feature.
EDIT:
Maybe I set you on the wrong track, but within the App Extension Programming Guide you could have found the answer to your Question. I'm using Xcode 7.0 Beta 4, but most of the following screenshots should look exactly the same in Xcode 6.*. First of all I started a new SingleView-Application written in Swift and added the Document-Provider Extension as a target to the Project as outlined above.
After building the application with the new Document Provider target I ended up starring confused onto the Share-Menu realising that we talked at cross purposes. The Documentation on this target is slightly muddled but after a while of testing and searching I realised that the thing you are looking for is the Document Picker, not the Document Provider. On this Page you can find the Relevant Chapter: Accessing Documents Link, where you can get examples for the Document Picker.
Since this will hopefully solve your Problem, I would like to shortly refer to the Document Provider and the overvalue it could add to your Application.
The Document Provider extension consists of two separate parts: the Document
Picker View Controller extension and the File Provider extension. The Document Picker View Controller extension provides your document provider’s user interface. The system displays this interface when the host app presents a document picker view controller for your document provider. This interface should let users browse through and select documents and destinations from inside your document provider. This extension can also perform basic import and export operations without any additional support.
from the App Extension Programming Guide as mentioned above
So the Document Provider is kind of an Import Feature as seen from another app. If you would implement a Document Provider Target for your Application, other Apps can access designated data. For example you could attach Files from your App to an E-Mail (left screenshot) or Open a File in Pages (right Screenshot).
When working with Files, this could be a nice feature for your users.
Also I would recommend using either a Share or a Action Extension.
Share extensions give users a convenient way to share content with other entities, such as social sharing websites or upload services. For example, in an app that includes a Share button, users can choose a Share extension that represents a social sharing website and then use it to post a comment or other content.
That doesn't sound exactly like the thing you want to achieve, but at the moment even Apple uses the Share Extension for all kinds of things.
An Action extension helps users view or transform content originating in a host app. For example, an Action extension might help users edit an image in a document that they’re viewing in a text editor. Another type of Action extension might let users view a selected item in a different way, such as viewing an image in a different format or reading text in a different language.
You said you want to import a document from another app into your app. This sounds handy. Lets assume a user opens a Document "loremIpsum.txt" in the iCloudDrive Application and wants to share it to your new app.
Now, you have to write the code to handle imported files when opened by the Document Picker, you could reuse this code to easily add a Action Extension to the Share-/Action-Menu. I hope this will help you and solves more than one problem.
Best regards
cr0ss

Resources