Skip to content

Instantly share code, notes, and snippets.

View Enriquecm's full-sized avatar

Enrique Choynowski Melgarejo Enriquecm

  • New Zealand
  • 04:37 (UTC +12:00)
View GitHub Profile
/* If you need to use **different decoders (JSON, URL, XML, etc)** with Alamofire,
the best and simplest way I found was using [XMLCoder][1].
- **Alamofire 5**
- **Swift 5**
-------------------
*/
[1]: https://github.com/MaxDesiatov/XMLCoder
@amarcadet
amarcadet / gist:1389966
Created November 23, 2011 21:23
Enumerates a CGPDFDictionaryRef
void enumeratesDictionaryValues(const char *key, CGPDFObjectRef object, void *info)
{
NSLog(@"---------- key ------ %s ---------------", key);
CGPDFObjectType type = CGPDFObjectGetType(object);
switch (type)
{
case kCGPDFObjectTypeString:
{
CGPDFStringRef objectString;
if (CGPDFObjectGetValue(object, kCGPDFObjectTypeString, &objectString))