How do I write a generic function that takes a Number or some alphabets and display that in 7- bit segment display.?
I want to write a Digital Clock application in which I have a 7- bit segment display. I want to write a generic code for displaying all the input. I have a CGPath in which I have 1 line for  each segment.
Now, how would I write a generic function for the above description?
Any help with some logic or code will be appreciated.
Thanks
How do I write a generic function that takes a Number or some alphabets and display that in 7- bit segment display.?
===

I want to write a Digital Clock application in which I have a 7- bit segment display. I want to write a generic code for displaying all the input. I have a CGPath in which I have 1 line for  each segment.
Now, how would I write a generic function for the above description?
Any help with some logic or code will be appreciated.
Thanks