Where is the API for "Invisible Ink" located? [closed] - imessage

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 5 years ago.
Improve this question
I have secrets that need to be shared in my application, and would like to adopt the "Invisible Ink" feature that is new in iOS 10.
https://youtu.be/n5jXg_NNiCA?t=1h27m30s
Since I'm creating a greenfield application (version 1) I think this visual element of consistency is a good thing to include in my app.
Is the invisible ink UX available for developers?

First and foremost, the invisible ink view is inside a private framework, and using private frameworks will cause your app to be rejected in the App Store reviewing process. Still, for the community's sake, here's your answer (I'm sorry I got it to you in Obj-C, I'll try and come back later to update it to Swift):
You need to go around using dlopen to load the ChatKit framework manually in your app:
dlopen("/System/Library/PrivateFrameworks/ChatKit.framework/ChatKit", RTLD_LAZY);
// or use RTLD_NOW if you need it loaded immediately
Then, instantiate a CKInvisibleInkImageEffectView using NSClassFromString:
id invisibleInk = [[NSClassFromString(#"CKInvisibleInkImageEffectView") alloc] initWithFrame: yourFrame];
[invisibleInk performSelector:#selector(setImage:) withObject: yourUIImage];
//You likely want to put the InvisibleInkView right over an UIImageView containing the very same image
That should do the trick for you. Remember to actually add the InvisibleInk view wherever you want using yourView.addSubview(invisibleInk), and have fun.

Related

Is there a way to create UML diagram from ios project automatically? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 5 years ago.
Improve this question
I want to create a class and flow diagram from our attractive but five years old ios project written with objective-c. The graph will show which classes and functions I interact with while using the app?
I know there are some tools for .NET or other languages where you can reverse engineer the project (visio, visual-paradigm) and create UML diagram from it for example, but they don't seem applicable for ios projects (objc or swift doesn't matter).
Plus OmniGraffle seems okay for creating the classes and models hierarchy like this
But what I need is the interaction between those classes with triggers like algorithm or flow of user actions.
For example, I clicked to add to cart button then it records...
AddCartVC (class) buttonTapped:
CheckControl (class) controlFunc
ResultVC
etc.
I would be glad if you know any solution for it! Or is there any way to easily do it like monitoring main run loop fetching class and function names etc?
Thanks a lot!
If you have omnigraffle https://www.omnigroup.com/omnigraffle you can drag and drop the project folds to the icon of the program and then a umlaut like diagrams is generated

Need example of a left slide-out menu that doesn't use ARC (Objective-C) [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 7 years ago.
Improve this question
I am updating an older massive project (circa 2010) that is NOT using ARC. All the examples I have found use ARC. Xcode will convert the project to use ARC but after the conversion, I have about 300+ red errors. With that in mind, it is easier to keep the project the way it is and add a slide out menu without using ARC. i just need an example to pull from. Thanks
You may want to simply find example you want and follow old memory management rules (retain-release) to convert ARC code to not ARC. if you have problems with understanding how to use MMR (manual memory management) i recommend you to read tutorials. For example you can read that: http://rypress.com/tutorials/objective-c/memory-management

Call Dial Screen in iOS App [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 8 years ago.
Improve this question
I want to have a screen exactly similar to the call dial screen on the call App on the iOS app that I am developing. Is there a way to have that screen in the app without actually implementing it?
If not, what would be the best way to design it? I have been trying to find some code which people might have developed which I can use?
To get this to run within your app you would need to design a copy from scratch unfortunately there's nothing built in to just call this as a view.
If you want to redirect people to call a number you can use the following:
NSURL *phoneURL = [NSURL URLWithString:#"tel:0123456789"];
[[UIApplication sharedApplication] openURL:phoneURL]];
The best way to design it is pretty straightforward as you already have access to it, that screenshot and photoshop would be the way forward, though I'm not sure you'd get through the app store approval process using that.
The below is a pretty nice control I've used myself before, take a look https://www.cocoacontrols.com/controls/jcdialpad
You need to rebuild it yourself, but this might help you out for the code:
https://github.com/hbang/Dialer

How to use Speech Recognition inside the iOS SDK? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 7 years ago.
Improve this question
I know that there is no public API for the SIRI-Services,
but is there an API for simple Speech-Recognition? So if I have a textfield and the user taps onto that textfield, a keyboard with the typically microphone button appears and if he pressed it the speech get recognized and transformed into a string object? Or is this button maybe presented by default?
There are many libraries availble. You can use any of them.
openears // This is the best library
VocalKit (Deprecated for open ears)
TTS
ispeech (Not free)
Hope it helps you.
NOTE:
if you download openears (which contains a sample project called "OpenEarsSampleApp") #efimovD mentions this
Check the code in view controller and you will see an array with
possible commands. This thing detects commands! Not some talk. It
listens and tries to compare what you've said with the words from
array
You can use the MindMeld iOS SDK provided by Expect Labs. It supports continuous (streaming) speech recognition on iOS. It also supports natural language understanding and content discovery for any custom content domain.
Try it out at: https://expectlabs.com/docs/sdks/ios/gettingStarted

trigger.io - Looking for data storage possibility [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 8 years ago.
Improve this question
I know this is not a technical question but I don't know where to ask elsewhere.
I use the very cool toolkit called trigger.io to develop apps for both android and ios. Now I would like to use something like a database to display data in my app.
Firstly I found a realtime backend called firebase: http://www.firebase.com/
Nice but it takes a while until one gets access to it since it is still in beta.
Then I found a cloud service called Kinvey: http://www.kinvey.com/ Also interesting, but it is free as long as only 200 users download the app.
So do you know any alternatives to store data and use it for my app?
That would be very helpful,
thanks enne
Sure. Parse is an easy option. Basic plan to get start is $0 a month.
Also, there is nothing stopping you from bundling (or download and saving and caching) a json file for use in your trigger.io app.

Resources