Skip to content

Instantly share code, notes, and snippets.

View spraveenk91's full-sized avatar
💻

Praveenkumar S spraveenk91

💻
View GitHub Profile
@protocol BaseDelegate <NSObject>
@required
- (void)didSelectActionSheetIndex:(NSString *)actionTitle actionSheetIndex:(NSInteger )index;
@end
@interface CustomAction : NSObject <UIActionSheetDelegate>
@property (nonatomic, assign) id<BaseDelegate> delegate; // Assign property
Incident Identifier: C28260B4-DECA-419E-BC49-770D7701708C
CrashReporter Key: 05b2264055702abdd411424db738dcfc3b5b983b
Hardware Model: iPhone8,2
Process: MyApplicationName [412]
Path: /private/var/containers/Bundle/Application/772F232F-AC65-4467-AFEA-A989A812D406/MyApplicationName.app/MyApplicationName
fileprivate let people: BehaviorRelay<[Person]> = BehaviorRelay(value: [
Person(name: "Spiderman", title: "Marvel"),
Person(name: "Batman", title: "DC"),
Person(name: "Mickey", title: "Disney")
])
let disposeBag = DisposeBag()
class CardView: UIView {
@IBOutlet weak var title: UILabel!
@IBOutlet weak var image: UIImageView!
@IBOutlet weak var collectionView: UICollectionView!
func setupCardView() {
.....
}
override func layoutSubviews() {