The code to calculate this must already exist in a framework somewhere since it's used by CLHeading when location services are available.
If anyone can find that code or has Objective C for the world magnetic model posting it would be appreciated.
UPDATE: I found a great open source iOS wrapper! Thanks Crookneck!
https://github.com/stephent/ObjectiveWMM
Simple installation as a git submodule
run this command:
$git submodule add https://github.com/stephent/ObjectiveWMM.git ObjectiveWMM
Add these files to your Xcode project:
CCMagneticDeclination.h
CCMagneticDeclination.m
CCMagneticModel.h
CCMagneticModel.m
NSDate+DecimalYear.h
NSDate+DecimalYear.m
WMM/EGM9615.h
WMM/GeomagnetismHeader.h
WMM/GeomagnetismLibrary.c
WMM/WMM.COF