Skip to content

Instantly share code, notes, and snippets.

@rafattouqir
Created February 14, 2019 08:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rafattouqir/daae069f20a0d387972476292a9c8831 to your computer and use it in GitHub Desktop.
Save rafattouqir/daae069f20a0d387972476292a9c8831 to your computer and use it in GitHub Desktop.
//
// NewViewController.m
// AlertButton
//
// Created by Rafat Touqir Rafsun on 2/14/19.
//
#import "NewViewController.h"
//IMPORT The RKDropdownAlert here in your viewcontroller
#import <RKDropdownAlert/RKDropdownAlert.h>
@interface NewViewController ()
@end
@implementation NewViewController
- (void)viewDidLoad {
[super viewDidLoad];
// Do any additional setup after loading the view.
}
- (void)viewDidAppear:(BOOL)animated{
[super viewDidAppear:animated];
//call the alert function here
[self showDropDownAlert];
}
- (void) showDropDownAlert{
[RKDropdownAlert title:@"HI" message:@"HEllo"];
}
@end
# Uncomment the next line to define a global platform for your project
platform :ios, '11.0'
target 'AlertButton' do
# Comment the next line if you're not using Swift and don't want to use dynamic frameworks
use_frameworks!
# Pods for AlertButton
pod 'RKDropdownAlert' #new alert library for objc-c viewcontroller
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment