Presented is a quick snippet of how to set the text alignment for the message field of a UIAlertControlller. It basically requires creating a NSMutableAttributedString with a NSMutableParagraphStyle that sets the text alignment. The message is then set in the controller by accessing the NSMutableAttributedString object’s string using the “attributedMessage” key.
Here is an example:
Continue reading “Set Text Justification in a UIAlertController”
I have been busy working on a prototype tank game that uses iOS MPC for multiplayer functionality. I started with some code on Github to get a head start on the tank movements and collision detection. MPC is pretty easy to use with the only problem I encountered were stale peers showing up in the peer browser. This was solved by storing the MCPeerID for reuse as well as making sure the MPC assistant stopped advertising when the application went into the background or the peer became disconnected. This is what the application looks like with two players (max of four):
Continue reading “Multiplayer Tank Game”
Our conversion from Blogger to WordPress is complete. We have resubmitted our sitemap and will be re-indexing to fix any broken search links to reduce those 404 Not Found errors. If you find something wrong, please let us know at ZuniSoft Support.
We are in the process of updating our site from Blogger to WordPress. Everything should work except for internal links and code syntax highlighting of which we are working on.
Please pardon our dust!