for(UIButton *keyButton in self.view keyboardView){

Im trying to set up the variable keybutton to allow me to retrieve all my buttons in the keyboard view. I don't know how to write it though. another form of this initializaiton is with an NSArray: for(UIButton *keyButton in self.KeyBoardButtons){

The NSSArray (keyboardButtons) works, so how can i replace that to return the buttons in a UIView.

Answers


I finally figured it out.

    for(UIButton *keyButton in keyboardView.subviews){

I hope this helps people and i don't get down-voted for the post, because i really couldn't find it with any searching.

Solved with trial and error.


Need Your Help

AsyncDisplayKit invalidateCalculatedSize Swift not working

ios xcode swift asyncdisplaykit

I have an AsyncDisplayNode from Facebook's AsyncDisplayKit framework. When there is a data change in my app, the content of that cell may need to be changed, and I want to signal that change by cal...

Can I use temporary value in sql query

mysql sql

Can I write somthing like this in query?