Is it possible to add CardDav account programmatically as it can be done by manually using Mail,Contacts,Calendras -> Add Account option in Settings app.
In general is it possible to add in code any other type of acccount?
For instance exchange account. I read that somewhere on forum that it isn't.
According with ABSource
it seems that it is not possible to add account from the code. There are just functions for reading and copying values from appropriate source record