background preloader

iOSDeveloperTips.com - Code, tips and tricks for iOS developers. [iOS developer:tips];

iOSDeveloperTips.com - Code, tips and tricks for iOS developers. [iOS developer:tips];

http://iosdevelopertips.com/

Related:  IOS 7 Development

Learn Objective-C: Day 1 Welcome to my series on coming to grips with the awesome language that is Objective-C. Throughout this small series of articles, my aim is to take you from no prior experience with Objective-C to using it confidently in your own applications. This isnʼt a rush job - so donʼt expect to just skim through the basics and be away - weʼll be going through not just the bare essentials, but also the best practices you can apply to ensure your code is the best it can be. Letʼs jump straight in! What is Objective-C? If youʼre reading this series then Iʼll hazard a guess that you already know, but for those of you who donʼt, donʼt worry as by the end of this part youʼll know what it is back-to-front and inside-out.

Streaming Audio to Multiple Listeners via iOS' Multipeer Connectivity Music has always been a very important part of iPhones and all Apple devices. With the advent of iOS 7, Apple introduced a new technology called Multipeer Connectivity which allows us to stream data with NSOutputStream and NSInputStream. I wanted to use this great new framework to stream audio to many listeners. However, there is no easy way to play audio from an NSInputStream. So I set out on an adventure through CoreAudio to make this possible. Learn iOS to create iPhone apps ipauland2 Try IOS is a great introduction to programming for iWhatever devices. The course deftly sidesteps the diversion of the Apple development environment, XCode, simulators and NIB files and instead focuses on the structure of IOS applications - the relationship between controllers and views, and for good measure adds some network code and JSON into the mix. I can't fault the course. It's to the point, it takes the participant (and we do have to participate) deeper and deeper into the architecture of IOS development, peeling back the layers as we progress.

Objective-C: Cheat Sheet The ultimate Objective-C tutorial Cheat Sheet to help you with your iOS Development Journey. - Looking to start creating your first iOS application? Then check out this awesome tutorial: Create your first iOS 7 Hello World Application - Note: I wrote this over a stretch of 3 days, so it could probably use some editing and clarifications where necessary, Leave a comment below with any suggestions and alterations.

Objective-C Math functions Hi this is Marin - the author of Touch Code Magazine, I hope you are enjoying my tutorials and articles. Also if you need a bright iPhone developer overseas contact me - I do contract work. Here's my LinkedIn profile Article: Pebble Smart-watch, Xcode 5 and OS X Mavericks After stumbling a few times while setting up my development environment for the Pebble Smart-watch, I decided to write a step-by-step guide on the topic to save time and sanity to other developers coding their first application for Pebble using Xcode 5 under OS X Mavericks and iOS. Things You'll Will Need In Your iOS Device Update to iOS 7 just to be sure.Don't bother downloading the Pebble app from the App Store (v1.x). You need to submit a form to receive an .ipa with the 2.x version.After receiving the .ipa file with the Pebble app v2.x, install it. Open your device's Settings app, select Pebble and enable 'Developer Mode'.

A Tasty Pixel » Blog Loopy News! I’m happy to announce Loopy HD 1.4 and Loopy 2.5 – a significant update that brings the features most frequently requested by users: Reverse and decay. Also – Loopy HD is 50% off! You can access the new effects via the track menu, which can now be rotated to access the new menu items. Extended File Attributes Amidst revelations of widespread spying by the NSA, the concept of metadata has taken an unexpected role in the national conversation about government surveillance. What is it? And how much does it reveal about us and our daily habits?

Xcode Overview: Build a User Interface You create your app’s user interface in Interface Builder. Select a user interface file in the project navigator, and the file’s contents open in Interface Builder in the editor area of the workspace window. A user interface file has the filename extension .storyboard or .xib. Default user interface files are supplied by Xcode when you create new projects from its built-in templates. The contents of .xib and .storyboard files are stored by Xcode in XML format. At build time, Xcode compiles your .xib and .storyboard files into binary files known as nibs. Smart proxy delegation - Peter Steinberger When calling optional delegates, the regular pattern is to check using respondsToSelector:, then actually call the method. This is straightforward and easy to understand: Now, this used to be three lines and now it’s four lines, because delegate is usually weak, and once you enable the relatively new Clang warning, -Warc-repeated-use-of-weak, you will get a warning when accessing self.delegate more than once. All in all, that’s a lot of boilerplate for a simple selector call.

AppCode: Objective-C IDE done right AppCode is an intelligent Objective-C IDE that helps iOS/OS X developers create outstanding apps with ease and pleasure. A combination of smart coding assistance reliable refactorings efficient project navigation scrupulous code analysis powerful debugger flexible unit testing full Xcode compatibility and many other features that make you a lot more productive. Finest coding assistance Context-aware editor gives you precise code completion choices due to deep understanding of your code structure, saves you from unnecessary typing by generating code, allows you to program by intention and minimize the routine tasks.

Concepts in Objective-C Programming: Delegates and Data Sources A delegate is an object that acts on behalf of, or in coordination with, another object when that object encounters an event in a program. The delegating object is often a responder object—that is, an object inheriting from NSResponder in AppKit or UIResponder in UIKit—that is responding to a user event. The delegate is an object that is delegated control of the user interface for that event, or is at least asked to interpret the event in an application-specific manner. To better appreciate the value of delegation, it helps to consider an off-the-shelf Cocoa object such as a text field (an instance of NSTextField or UITextField) or a table view (an instance of NSTableView or UITableView ). These objects are designed to fulfill a specific role in a generic fashion; a window object in the AppKit framework, for example, responds to mouse manipulations of its controls and handles such things as closing, resizing, and moving the physical window.

Google Objective-C Style Guide Unlike C++, Objective-C doesn't have a way to differentiate between public and private methods—everything is public. As a result, avoid placing methods in the public API unless they are actually expected to be used by a consumer of the class. This helps reduce the likelihood they'll be called when you're not expecting it. This includes methods that are being overridden from the parent class. For internal implementation methods, use a category defined in the implementation file as opposed to adding them to the public header. #import "GTMFoo.h" @interface GTMFoo (PrivateDelegateHandling) - (NSString *)doSomethingWithDelegate; // Declare private method @end @implementation GTMFoo (PrivateDelegateHandling) ... - (NSString *)doSomethingWithDelegate { // Implement this method } ...

NSIncremental​Store Even for a blog dedicated to obscure APIs, NSIncrementalStore brings a new meaning to the word "obscure". It was introduced in iOS 5, with no more fanfare than the requisite entry in the SDK changelog. Its programming guide weighs in at a paltry 82 words, making it the shortest by an order of magnitude. If it weren't for an offhand remark during WWDC 2011 Session 303, it may have gone completely unnoticed.

Related: