Substitute for OnGUI in iPhone programming

I have a book that gives tutorials in Unity 3D Game programming. When I compile and run to my iPhone I see that the OnGUI function is giving trouble. I saw in a post that OnGUI and GUILayout should be avoided in iPhone game development.

My question is:
How do I NOT use the function OnGUI? These tutorials show lots of Unity 3D game examples using it. Is there a substitute function? I am calling certain functions within OnGUI so what is the alternative?

Help Please

The alternative is using an orthographic camera and meshes to display 2D elements in 3D space. Not that hard to pull off, but if you don’t have a lot of experience you might want to check out spritemanager2 and ez gui.

I totally agree with the above. If you have the funds to pull it off get both SM2 and EZGUI.