iPhone and iPad d...
Follow
Find tag "block"
440.8K views | +326 today
iPhone and iPad development
Tips, Libs and more about iPhone and iPad development and ios
Curated by Vincent Demay
Your new post is loading...
Your new post is loading...
Scooped by Vincent Demay
Scoop.it!

Open Source: Massive Collection Of Objective-C Blocks Extensions

Here’s a list of some of the features provided taken from the project’s Github page:

  • Performing blocks on an NSObject.
  • Key-value observation (NSKeyValueObserving) using a block handlerAssociated objects using an Obj-C API. (Not directly block-related.)
  • NSArray, NSSet, and NSDictionary filter utilities
  • BKMacros, for more quickly typing out the above.
  • NSInvocation creation using blocks
  • NSTimer block execution
  • UIAlertView, UIActionSheet with block callbacksBlock initializers for UIControl and UIBarButton
  • ItemInitializer for UIGestureRecognizer
  • On-touch utilities for UIView.
  • both delegation and block callbacks on NSURLConnection



✔ sources: https://github.com/zwaldowski/BlocksKit



more...
No comment yet.
Scooped by Vincent Demay
Scoop.it!

Grand Central Dispatch And Writing Methods That Accept Blocks As Arguments

Grand Central Dispatch And Writing Methods That Accept Blocks As Arguments | iPhone and iPad development | Scoop.it

Have you ever looked at the enumerateObjectsUsingBlock method of NSArray and wondered how you might use that design pattern in your own application. In this tutorial, I will be showing you how to do just this. We will be writing methods that accept blocks as arguments as well as learning how to declare block ivars and properties.

more...
No comment yet.