iOS & macOS development
132.9K views | +0 today
iOS & macOS development
cool tips and source code for Cocoa, Swift and Objective-C
Curated by Alessio Nonni
Your new post is loading...
Your new post is loading...
Scoop.it!

Developing private static library for iOS with CocoaPods

Developing private static library for iOS with CocoaPods | iOS & macOS development | Scoop.it

Today I will show you how to create a private static library for iOS which is a CocoaPods project itself and use it in your CocoaPods managed application without pushing it into global Pods repository or even your own public repo. We will also add some unit tests so it can be improved and developed independently.

No comment yet.
Scoop.it!

Tips for High Performance Collection Looping in Objective-C

Squeeze out every bit of performance when looping through a collection in Objective-C. Specifics tips for NSArray, NSDictionary and NSSet.

No comment yet.
Scoop.it!

CAAnimation-EasingEquations

CAAnimation-EasingEquations | iOS & macOS development | Scoop.it

A category on CAAnimation that provides a number of easing equations to add some zazz to your app (with examples!)

No comment yet.
Scoop.it!

Clean, Modern Objective-C

Clean, Modern Objective-C | iOS & macOS development | Scoop.it

Objective-C is far and away my favorite language, and its base syntax lends itself to cleanliness and readability. Unfortunately, developers who are familiar with other languages sometimes come in and muck everything up.


These guidelines borrow heavily from Ash Furrow's Structuring Modern Objective-C and the New York Times Objective-C Style Guide.

No comment yet.
Scoop.it!

PEPhotoCropEditor

PEPhotoCropEditor | iOS & macOS development | Scoop.it

PEPhotoCropEditor is image cropping library for iOS, similar to the Photos.app UI.

No comment yet.
Scoop.it!

Canvas: Animate in Xcode without code

Canvas: Animate in Xcode without code | iOS & macOS development | Scoop.it

Canvas is a project to simplify iOS development for both designers and developers. It had been difficult for designers to get hands on building the product with the lack of objective-c and Xcode experience, and a hard time for developer to use reasonable amount of time and lines of code just to achieve really simple effects.


With Canvas, creating stunning animations requires zero lines of code, trendy effects like the Parallax headers, Sticky sections, Blurred Backgrounds, will be as simple as few lines of code changes.

No comment yet.
Scoop.it!

MBDebugPanel

MBDebugPanel | iOS & macOS development | Scoop.it

MBDebugPanel is a development helper to let you easily add 'behind the scenes' features to your app. It is intended for use during development & debugging.


It offers a simple way to define helper tools, and present them in a Table View above the root window.

No comment yet.
Scoop.it!

ANBlurredImageView

ANBlurredImageView | iOS & macOS development | Scoop.it

Subclass of UIImageView for animating the blurring and unblurring of images with a tint color. Useful for quick transitions and bringing focus to the foreground.

No comment yet.
Scoop.it!

CRToast

CRToast | iOS & macOS development | Scoop.it

CRToast is a library that allows you to easily create notifications that appear on top of or by pushing out the status bar or navigation bar. CRToast was originally based on CWStatusBarNotification.

No comment yet.
Scoop.it!

Xcode Tips And Tricks For Better Productivity - Codigator

Xcode Tips And Tricks For Better Productivity - Codigator | iOS & macOS development | Scoop.it
This post is all about Xcode tips and tricks for better productivity that differentiates an amateur iOS developer from a rock-star dev. After reading this tutorial, not only will you be faster but more efficient. I will update this post as and when I find more interesting tips.
Wazir's curator insight, April 1, 2014 10:34 AM

XCode Tips & Tricks

Scoop.it!

SprityBird

SprityBird | iOS & macOS development | Scoop.it

This project is a small clone of Flappy Bird for iOS using SpriteKit framework. It can be used as a base for many types of scrolling games with some imagination.

No comment yet.
Scoop.it!

iOS and OS X Development: How to reduce Xcode and AppCode build times

iOS and OS X Development: How to reduce Xcode and AppCode build times | iOS & macOS development | Scoop.it

Both Xcode and AppCode intensively cache temporary “information” on the file system. Each time you cleanup the project, make a new build, or launch the app in iOS Simulator, IDE will read and write megabytes of files into the special folder named DerivedData. You will be surprized how much space can be freed up by executing rm -rf ~/Library/Developer/Xcode/DerivedData/* in Terminal. This command is totally safe, because Xcode will regenerate everything it needs from scratch when you build the next project.

As result of this caching, the speed of building and launching the app in debugger may significantly depend on the “speed” of your hard drive. With SSD, a typical iOS-project with precompiled information will launch in 5-10 seconds. With HDD, it will take more time. Anyway, you should know that there is an easy way to build and launch the app in iOS Simulator much faster.

No comment yet.
Scoop.it!

Build your own Flappy Bird with SpriteBuilder and Cocos2d 3.0

Build your own Flappy Bird with SpriteBuilder and Cocos2d 3.0 | iOS & macOS development | Scoop.it

This is the one and only tutorial that will teach you how to implement a native Flappy Bird clone for iOS. We will be using SpriteBuilder and Cocos2d 3.0 and walk you through all the steps starting with a blank project.


If you aren't familiar with SpriteBuilder you should consider starting with our beginner tutorial as we won't repeat all basic concepts of SpriteBuilder.


If you complete this tutorial you will learn how to:

  • implement an endless scroller
  • implement procedural level generation
  • use Coco2d 3.0 physics

The solution to this tutorial is available on GitHub:

No comment yet.
Scoop.it!

NBULog

NBULog | iOS & macOS development | Scoop.it

Log framework based on CocoaLumberjack. Adds dynamic log levels, modules' support and eases usage.

No comment yet.
Scoop.it!

How to Fix the Most Common Xcode Errors

How to Fix the Most Common Xcode Errors | iOS & macOS development | Scoop.it

This article is a collection of the most common issues that I see the students of my course and audience members getting stuck on as well as how to fix them.


I thought writing up this reference will be handy to point people to in the future and I’ll continue to update it with new questions/issues that crop up from my students so please bookmark it!

No comment yet.
Scoop.it!

MTDirectionsKit

MTDirectionsKit | iOS & macOS development | Scoop.it

Did you ever wonder why Apple didn't provide a way to show directions directly on top of MKMapView and force you to switch to their built-in Maps.app just to guide your users somewhere? We too, that's why we built MTDirectionsKit.


MTDirectionsKit is a full-featured and easy to use solution to show directions in your App, directly on top of MKMapView and works pre-iOS7.


MTDirectionsKit can use the following three APIs for gathering routing information:

  1. MapQuest Open Directions API
  2. Google Directions API
  3. Bing Routes API
No comment yet.
Scoop.it!

Introduction to Objective-C for Programmers

Introduction to Objective-C for Programmers | iOS & macOS development | Scoop.it

If you are interested in iOS development and you still angry that you cannot grasp Objective-C easily like you do with other languages here is the simple and short quite for you. I won’t describe the very basics here like message passing, inheritance etc, that except the weird syntax is very similar to what you know from other programming languages.


I’ll try to describe some peculiarities of Objective-C syntax and common practices which I personally found new/strange/amazing while learning Objective-C as another language. This list is created for people who are just starting with Objective-C but are experienced programmers in other languages and created already one or two simple Objective-C applications.

No comment yet.
Scoop.it!

How to Price Your App: Free or Paid - Tuts+ Code Article

How to Price Your App: Free or Paid - Tuts+ Code Article | iOS & macOS development | Scoop.it

You've worked for weeks or even months on your first mobile application and it's ready for prime time. The next step, of course, is to publish it to Apple's App Store if it's an iOS application or Google Play if you're targeting the Android platform. One of the question you should ask yourself is "How much should my application cost?" $0.99? $1.99? $10.99? Free? In this article, we'll consider your options and decide which one is the road to success and which one isn't.

No comment yet.
Scoop.it!

PSUpdateApp

PSUpdateApp notifies you if a new version of your iOS application is available in the AppStore or in any other place.
If a new version is available, PSUpdateApp presents an UIAlertView, that informs you of the newer version, and gives you the option to update the application.


The component is based on AFNetworking framework, using AFJSONRequestOperation method to read and parse the JSON response.

No comment yet.
Scoop.it!

BBUDebuggerTuckAway

BBUDebuggerTuckAway | iOS & macOS development | Scoop.it

Xcode plugin for auto-hiding the debugger once you start typing in the source code editor.

No comment yet.
Scoop.it!

Method Swizzling

Method Swizzling | iOS & macOS development | Scoop.it

Method swizzling is the process of changing the implementation of an existing selector. It's a technique made possible by the fact that method invocations in Objective-C can be changed at runtime, by changing how selectors are mapped to underlying functions in a class's dispatch table.


For example, let's say we wanted to track how many times each view controller is presented to a user in an iOS app.


Each view controller could add tracking code to its own implementation of viewDidAppear:, but that would make for a ton of duplicated boilerplate code. Subclassing would be another possibility, but it would require subclassing UIViewController, UITableViewController,UINavigationController, and every other view controller class—an approach that would also suffer from code duplication.


Fortunately, there is another way: method swizzling from a category.

No comment yet.
Scoop.it!

Cocoaholic | Snippet Edit

Cocoaholic | Snippet Edit | iOS & macOS development | Scoop.it

Snippet Edit can override Xcode's Standard Snippets, but does not modify Xcode itself. Editing is non-destructive, you can revert to Xcode's Standard Snippets at any time.

Modified snippets will show up as User Snippets in Xcode's Code Snippet Library. You can edit snippets in Snippet Edit or in Xcode directly, they are now under your control!


No comment yet.
Scoop.it!

JPSImagePickerController

JPSImagePickerController | iOS & macOS development | Scoop.it

A pixel-perfect clone of iOS 7's UIImagePickerController, with a few improvements.


Features:

  • Front/Back camera switching
  • Flash on/off
  • Taking pictures in multiple orientations
  • Triggering a picture with the "volume up" hardware button
  • Confirmation screen
  • Zooming the image in the confirmation screen
  • Displaying a message in the confirmation screen


No comment yet.
Scoop.it!

VENCalculatorInputView

VENCalculatorInputView | iOS & macOS development | Scoop.it

VENCalculatorInputView is the calculator keyboard that is used in the Venmo iOS app. Available for iOS 5 and beyond. Enjoy.

No comment yet.