How do you use weak linking in an iPhone application? -


how weak link frameworks when developing iphone?

once you've weak-linked framework, how use classes , methods may not present on os versions?

what want use weak linking for?

a common use use class defined in newer version of sdk. framework exists on older systems, class defined in framework doesn't.

if case use nsclassfromstring(). if returns nil, class doesn't exist, otherwise return class object can used.

this recommended way according apple in document:


Comments

Popular posts from this blog

python - Scipy curvefit RuntimeError:Optimal parameters not found: Number of calls to function has reached maxfev = 1000 -

c# - How to add a new treeview at the selected node? -

java - netbeans "Please wait - classpath scanning in progress..." -