TGPControls icon indicating copy to clipboard operation
TGPControls copied to clipboard

Can't find the UI objects

Open yazami opened this issue 9 years ago • 3 comments

Hi,

I can't manage to find the UI objects that come with TGPControls (i.e. TGPCamelLabel, TGPDiscreteSlider). I've been looking inside the object library, but none of them are there. Am I doing something wrong?

yazami avatar Jun 18 '17 15:06 yazami

Same issue. It would be great if the readme explains this!

jonathanbronson avatar Oct 24 '17 05:10 jonathanbronson

did you ever get an answer?

lindseyvastola avatar Oct 27 '17 16:10 lindseyvastola

I was wondering the same thing as it's not stated in the Readme and I have not used custom UI components before.

Just drag a UIView in Interface Builder onto whatever it is you are building. Then select that view and go to the Identity Inspector menu (the one that looks like a postcard). Under Custom Class -> Class, select one of the TGP classes (TGPDiscreteSlider for example). Now the UIView will show the preview and if you go to the Attributes Inspector menu (the one that looks like a shield) you can change it's properties.

Note, for all of this to work you of course need to installed the Pod and opened the .xcworkspace.

jeffjvick avatar Nov 15 '17 00:11 jeffjvick