6
votes
1answer
1k views

Review of my code: Tic Tac Toe in Objective-C

I am completely new to Objective-C. I have written a simple SingleView Tic Tac Toe Application application for learning purposes. While writing the app I tried to be as much sound as I could, but ...
4
votes
3answers
486 views

Am I using too many if statements?

Essentially, I am making an app that allows the user to type in chemistry formulas using a custom keyboard. The keyboard will have several keys, for example, "Na", "H", and "O". Pressing them in ...
2
votes
3answers
212 views

Shorten This Code with… blocks?

I think this code cannot be shortened much, especially because I only consider two cases. But maybe there's a language construct that I don't know that would help. if (subControl.inverted) { ...
1
vote
1answer
82 views

Rot47 an NSString Category

As a JAVA native, i am always a litle worried when doing objective-c... memory leaks and pointers flying at my head... All comments are welcome on the Category below, the Category functions are ...
0
votes
1answer
68 views

Optimize nested enumerate blocks?

Well, i have 3 nested NSEnumeration loops, used to get the textfields of a custom cell, in a custom table in a custom view in a controller... How can i change this code to make more readable and more ...