Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

Buckeyes1995

macrumors member
Original poster
Mar 4, 2011
95
11
Hi all-

I'm working on learning Objective-C and want to play around with the Acceleration foundation; more specifically, the BLAS methods.

I'm working on laying out my UI, and am wondering the best way to enter/edit the individual matrix elements.

For example, if my UI displays the follow (say a 3x3 matrix):

Elem(1,1) Elem(1,2) Elem(1,3)
Elem(2,1) Elem(2,2) Elem(2,3)
Elem(3,1) Elem(3,2) Elem(3,3)

[Data Entry Box Here]



I want to be able to touch an element and change it's value via a data entry box below the matrix display.

My thought was to set up an array of UILabels and then use the touches capability to pick off the touch point and compare that to the CGRect bounds of the elements, and then edit the respective element.

My question is, am I making this too hard? Is there a simpler way to do this? I've scoured the documentation for UILabel and haven't seen any particular method that will do this for me.

Also open to any other suggestions in regards to how to do this instead of using UIlabels like I mentioned. I do NOT want to edit the elements directly at the element location (need to do it in a data entry box).

Thanks!
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.