How do I customize SDCAlertView when using it in an Objective-C class - objective-c

I am using SDCAlertview in a project, that is being developed in Objective-C, and I would like to be able to set the visual style but I am unable to do so.
The only file that I am able to import into any other obj-c class is SDCAlertView-Swift.h and that does not give me any options to set the visual style.
I have seen code samples, in swift, that are able to do this.
Can someone help me out here?
Thank You.

There was a problem with exposing this API to Objective-C. That's fixed in https://github.com/sberrevoets/SDCAlertView/commit/3f26a7851e1022e5aa65328ce9f36c63cdcb371a. This is not in master yet, but I plan on releasing an update in the next week or so.

Related

Is it possible to create a Binding Library from a sample code even if it doesn't work / it's full of errors?

I was thinking that I need to be able to build and run a sample code first to make sure all of its functionalities work. Before I could create a Bindings Library out of it, and use it in my Xamarin app.
This is the sample code:
https://github.com/hannesa2/LiveEdgeDetection
This code uses OpenCV and I need it for my Xamarin app
I try to build and run it, but there are endless of errors. I do not have a lot of experience using Kotlin either. So I was wondering if it is possible to skip this part. I am a beginner, but from how I understand Bindings Library it should be possible? Ideally, the git repository should successfully work elsewhere. Maybe not just in my computer/Android Studio.
Although, I would understand if it's not possible either.
Thank you.

Login/post to WordPress using Objective-C?

I checked out their API, but I didn't recognize anything, and saw nothing for Objective-C. Could someone guide me in the right path? Thanks in advance!
WordPress doesn't have any specific Objective-C library as far as I know. It implements a few XML-RPC interfaces, so you'll just want to get an Objective-C XML-RPC library and talk to it through that.
You can check out the source code for their iOS app too if you want to see how they do it as well.
http://ios.wordpress.org/development/

How do I access/read the Phonegap API?

I know there is this: http://docs.phonegap.com/en/2.1.0/index.html but it doesn't really help.
I am trying to learn about the appView variable (I think it's a variable). I would've said it was a class but it starts with a lower case letter :/
The reason I am trying to learn that is because I am trying to understand the appView.addJavascriptInterface(Object, String) method.
My main goal is to send a variable from a java file to a javascript file. Tutorials online seem to be using the method stated above. Because the method takes in an object, the tutorials seem to be creating another class. I want to simplify my code as much as possible so I was seeing if there are any other options.
You will want to write a Plugin. We've already gone through the pain of the JS to Java and back to JS communication. If you purely use addJavaScriptInterface you will run into some edge cases where it doesn't work and we already guard against.
In appView.addJavascriptInterface(Object, String) method Object refers to Java object from which you want to transfer data from Java to java script.
You can't achieve functionality without creating new class.
Apart from Plugin usage above mentioned way only we can achieve communication between java and javascript in phonegap apps.

Using initWithVCardRepresentation

So I have used an instance of ABRecordRef to create an ABPerson using "ABPersonCreate()".
What I would now like to be able to do is use the "initWithVCardRepresentation" to add preset details to the ABPerson created.
I have no idea how to do this and my searches seem to keep coming up dry so any help would be greatly appreciated.
Thanks,
Matt
Duplicate of
Generate vCard from AddressBook.framework
and
Looking for a library for vCard generation and parsing in Objective-C, C, C++ (for iPhone)
which both end up suggesting you should implement your own (perhaps based on some ready made internet code, found in those links)
Cheers,
Oded.

Objective-C and designing a plugin mechanism

I need to design a simple plugin system in Objective C. I would like some advice about how to go about this. Thanks!
Cocoa is your girlfriend: http://www.cimgf.com/2008/09/17/cocoa-tutorial-adding-plugins-to-a-cocoa-application/
Awesome tutorial.
There is always going to the Source. Here is the ADC reference to Plug-ins
There are dozens of ways you could do this, so you might need to elaborate a little on what exactly you're trying to achieve. As a starting point, I'd recommend you look into Cocoa delegates which are usually a great way to integrate new code into an existing framework.