My knowledge at P/InvokeMonotouch is pretty awful, and I want to call the iOS private API for UITextView(in particular setContentToHTMLString), and I'm not sure where to start from there.
P/Invoke
UITextView
setContentToHTMLString
If anyone could tell me how this is done (or even where to start!) That would be brilliant.
Just note that this is for the personal project that I am doing, mainly to expand my knowledge. The chances of getting this application in the application store are very thin, so it does not fall under the rules of the App Store / Apple's ability to change it.
change
Is this just a use case Selector?
Selector
The easiest way to call it with a selector, for example:
Selector s = new Selector("myPrivateAPIMethodName"); MyObjectToCallTheMethodOn.PerformSelector(s, parameterOfTheObject, 0);
, . Apple API , , AppStore - API, , .
.net, .
:
object oToInvoke; //Get the type of object Type t = typeof( oToInvoke ); //Invoke 'PrivateMethodName' return t.InvokeMember( "PrivateMethodName", System.Reflection.BindingFlags.NonPublic | System.Reflection.BindingFlags.Instance | System.Reflection.BindingFlags.InvokeMethod , null , oToInvoke , null );
, . InvokeMember
Thats in the System.Reflection Namespace
, !
Source: https://habr.com/ru/post/1784932/More articles:How to prevent buffer overflow in C / C ++? - c ++ΠΡΠΎΠ²Π΅ΡΠΊΠ° 2 ΠΎΠΆΠΈΠ΄Π°Π΅ΠΌΡΡ Π·Π½Π°ΡΠ΅Π½ΠΈΠΉ Π² Junit - javaDoxygen parse javadoc? - documentationΠΠ°ΠΊ ΡΡΠ°Π²Π½ΠΈΡΡ 2 ΠΏΠΎΠ»Ρ ΠΈ Π²Π΅ΡΠ½ΡΡΡ ΡΠ°ΠΌΠΎΠ΅ Π½ΠΈΠ·ΠΊΠΎΠ΅ Π·Π½Π°ΡΠ΅Π½ΠΈΠ΅ ΠΊΠ°ΠΆΠ΄ΠΎΠΉ Π·Π°ΠΏΠΈΡΠΈ? - sqlWhy do objects disappear from my session in IIS7? - c #Π‘ΠΏΠΈΡΠΎΠΊ ΡΡΡΠ°Π½ΠΎΠ²Π»Π΅Π½Π½ΡΡ ΠΏΡΠΈΠ»ΠΎΠΆΠ΅Π½ΠΈΠΉ - windows-phone-7Are debug / compiled versions of java class libraries available - javaMySQL replication error (1062) - mysqlHow to get EC / IO and GsmBitErrorRate for GSM cost in Android? - javaAndroid Custom MapView - androidAll Articles