David Ansermot Web Developer / TYPO3 Integrator

8fév/130

iOS – Sort NSDictionary/NSMutableDictionary keys

iOS LogoIt passed a long time since my last post. I was very busy on some iOS projects.
I now will try to take time to post more frequently.

I come back with a small smart tip about sorting NSDictionary on keys. I had to do it with categories title as keys.

The important thing to get in mind is that you cannot sort a NSDictionary but only a NSArray from the dictionary.

You can sort you dictionary by multiple selector, as : caseInsensitiveCompare, localizedCaseInsensitiveCompare, etc. Take a look in the doc.

Exemple :

  1. NSArray *keys = [[myDico allKeys] sortedArrayUsingSelector:@selector(caseInsensitiveCompare:)];
  2. NSMutableDictionary *outputDico = [[NSMutableDictionary alloc] init];
  3. for (id k in keys) {
  4.     [outputDico setObject:[myDico objectForKey:k] forKey:k];
  5. }

Take a look in the Apple documentation for more details.

17oct/120

iOS6 – UserLocation in MapKit Tip

Hi, here's a small tip very userfull. I've past so much time to solve this issue by code, but the solutions was so easy.

I was working on an application update from iOS 5.0 to iOS 6.0 and the issue was that the user location was no more displayed on the map. I was activating the user location with this code :

  1. - (void)viewDidLoad {
  2.    ...
  3.    _map.showsUserLocation = YES;
  4.    ...
  5. }

But with this, nothing shows...

The clue is to activate the user location in interface builder, just check the appropriate box :

Hope this helps.

See ya.

3sept/120

TYPO3 – Page QRCode 0.2.0 available

Hi, I've released this weekend Page QRCode 0.2.0 for TYPO3.

Changelog :

  • Working plugin flexform
  • Translations working

Checkout the TER page.
Download Page QRCode 0.2.0 

20juil/120

TYPO3 – DAN NoFollow 1.3.2 bugfix update

Hi, in the update 1.3.1 of DAN NoFollow, a bug was introduced.

This update fix this bug, so you're invited to update as soon as possible.

DAN NoFollow on TER

14juil/120

DAN NoFollow 1.3.0 available on TER

Hi, I've updated DAN NoFollow.

Now it adds 'rel="nofollow"' to your external links in the menus.

Visit extension's page