Platformsios 7.0, requires ARC


A simple warning view that takes advantage of UIKit Dynamic. This is inspired on the jumping icon that you would see on a Mac’s dock, when the app wants to get your attention. (For example: open a project in Xcode and remove the physical project afterwards: your will see the Xcode icon jumping from the dock).

On this demo a warning is showed, because we can’t find the user’s locaiton. With RPDynamicWarningView it would look like this:


You can use this project with any image and text you would like. The goal is to draw the user’s attention to it, without blocking the UI (avoiding UIAlertView).


You can use the following method to initate your RPDynamicWarningView:

- (instancetype)initWithText:(NSString *)text imageName:(NSString *)imageName;

If you want to remove it gracefully, for example when you acquire location, you can use the following method:

- (void)stopDynamicLocationWithCompletionBlock:(void(^)(RPDynamicWarningView *dynamicLocationView))completionBlock;

The completionBlock will allow you to add specific logic when the animation is done (for example remove the view altogether)


You can use by downloading the demo, or use cocoapods:

pod 'RPDynamicWarningView', '~> 1.0'


Henrique Macedo is the designer who created the marker image and the overall UI Design for this particular view (notice the letter pressing, as well).

Latest podspec

    "name": "RPDynamicWarningView",
    "version": "1.0",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    "summary": "A simple warning view that takes advantage of UIKit Dynamics",
    "homepage": "",
    "authors": {
        "R. Peres": "[email protected]"
    "source": {
        "git": "",
        "tag": "1.0"
    "platforms": {
        "ios": "7.0"
    "source_files": "Demo/RPDynamicWarningView/RPDynamicWarningView.{h,m,xib}",
    "requires_arc": true

Pin It on Pinterest

Share This