So, I'm pretty much a noob, and I'm pretty sure I'm missing something fundamental, but this is the last hurdle I need to overcome to finish my app.
Basically, I have 2 custom classes, my custom ViewController, and something I'm just calling "Button" which is a camera overlay view with a segmented control on it. The segmented control has 3 segments, and each segment changes these two float variables. Because I couldn't figure out a better way, they are "global", in the "they're in a header file I import to where I need them" kind of way.
So, heres my problem. Those two variables are used in the cameraViewTransform that is in my ViewController, and when they change, I need to "refresh" that cameraViewTransform so the changes are applied, but I can't figure out how to do that.
If someone could help me, that would be VERY much appreciated. If you need more info (or code, I'm just asking on a conceptual basis, but I'll provide code if its necessary) I'll give some more.
Thanks :)
P.S. If you have a better (or more correct) way to manage the "global" variables, that would be helpful too.