Cocoa Touch is a UI framework for building software programs to run on the iOS operating system from Apple, Inc. It is based on the Mac OSX Cocoa API toolset.

learn more… | top users | synonyms

1
vote
0answers
25 views

Sorting Timestamped Messages (iOS)

An app I'm building professionally includes rudimentary text messaging. It allows users to send from the phone, and it polls for new messages (I know, yikes. Push notifications are a future task) with ...
1
vote
1answer
145 views

iOS MQTT client app base view controller

I've been working on an iOS IOT client app which uses MQTT. After some reading I decided to go with CocoaMQTT. I have only been programming in swift/iOS for about 2 weeks now, so I thought I should ...
0
votes
0answers
229 views

Unit testing - Parsing data from the Weather Underground API

I'm writing unit tests for the first time. The tests are for my library on Github. I downloaded the JSON and stored it into a local file that looks like this: ...
6
votes
1answer
286 views

Find the next 7 o'clock NSDate

In my very specific scenario, I need to get an NSDate holding the next time the hour will be 7 (either AM or PM). On the case that this is the first time to do ...
1
vote
2answers
140 views

Archiving data in file system for iOS

Being my first time archiving data to the file system, I would like to have my code reviewed. This simple test project works as expected, but I want to see if what I am doing is following best ...
3
votes
1answer
155 views

Class / Superclass / Specific class matching condition, can it be simpler?

I recently built a way to automagically dismiss firstResponders for an app I'm building. Is there a more efficient way to approach this? ...
8
votes
1answer
283 views

iOS7 ChessGame UIChessboardView Design

I've been designing UIChessboardView in the likeness of UITableView using protocols and delegates. UIChessboardView.h ...
6
votes
2answers
2k views

iOS App - Interface for user log in using a call to a web service API

I have a navigation controller set up with a user code and password and a log in button. When the user clicks on the Log In button or the return key on the keyboard on the password text box - the ...
5
votes
1answer
2k views

UIView subclass

Generally, UI code is painful and full of kludges (at least, mine was like that). Recently I have decided to put an end to it and try to learn how to write good and reusable UI code. So here is the ...
6
votes
1answer
617 views

Logic in a card matching game controller

I have a card matching game with a model of: Card Deck PlayingCard ...
4
votes
1answer
573 views

NSFetchedResultsController implementation

I'm using both Core Data and NSFetchedResultsController. Is there anything I can improve on? ...
7
votes
1answer
154 views

Upgrading animation code

I understand that this animation code is outdated: ...