資源簡介
因業務需要需要將cell側滑按鈕多個豎向排布,使用系統代理基本上橫向排布,所以搗鼓了個自定義cell豎向排布側滑多個按鈕。
使用說明:1.直接繼承基類cell,不影響你的業務UI。僅僅只是具有了cell側滑功能

代碼片段和文件信息
//
//??AppDelegate.m
//??YPCellSwipe
//
//??Created?by?hbck?on?2018/11/19.
//??Copyright???2018年?com.hbck.mg.?All?rights?reserved.
//
#import?“AppDelegate.h“
#import?“ViewController.h“
@interface?AppDelegate?()
@end
@implementation?AppDelegate
-?(BOOL)application:(UIApplication?*)application?didFinishLaunchingWithOptions:(NSDictionary?*)launchOptions?{
????self.window?=?[[UIWindow?alloc]?initWithframe:[[UIScreen?mainScreen]?bounds]];
????ViewController?*vc?=?[[ViewController?alloc]init];
????UINavigationController??*nav?=?[[UINavigationController?alloc]initWithRootViewController:vc];
????self.window.rootViewController?=?nav;
????[self.window?makeKeyAndVisible];
????return?YES;
}
-?(void)applicationWillResignActive:(UIApplication?*)application?{
????//?Sent?when?the?application?is?about?to?move?from?active?to?inactive?state.?This?can?occur?for?certain?types?of?temporary?interruptions?(such?as?an?incoming?phone?call?or?SMS?message)?or?when?the?user?quits?the?application?and?it?begins?the?transition?to?the?background?state.
????//?Use?this?method?to?pause?ongoing?tasks?disable?timers?and?invalidate?graphics?rendering?callbacks.?Games?should?use?this?method?to?pause?the?game.
}
-?(void)applicationDidEnterBackground:(UIApplication?*)application?{
????//?Use?this?method?to?release?shared?resources?save?user?data?invalidate?timers?and?store?enough?application?state?information?to?restore?your?application?to?its?current?state?in?case?it?is?terminated?later.
????//?If?your?application?supports?background?execution?this?method?is?called?instead?of?applicationWillTerminate:?when?the?user?quits.
}
-?(void)applicationWillEnterForeground:(UIApplication?*)application?{
????//?Called?as?part?of?the?transition?from?the?background?to?the?active?state;?here?you?can?undo?many?of?the?changes?made?on?entering?the?background.
}
-?(void)applicationDidBecomeActive:(UIApplication?*)application?{
????//?Restart?any?tasks?that?were?paused?(or?not?yet?started)?while?the?application?was?inactive.?If?the?application?was?previously?in?the?background?optionally?refresh?the?user?interface.
}
-?(void)applicationWillTerminate:(UIApplication?*)application?{
????//?Called?when?the?application?is?about?to?terminate.?Save?data?if?appropriate.?See?also?applicationDidEnterBackground:.
}
@end
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????目錄???????????0??2018-11-19?11:02??YPCellSwipe\
?????目錄???????????0??2018-11-19?11:37??YPCellSwipe\YPCellSwipe\
?????目錄???????????0??2018-11-19?10:57??YPCellSwipe\YPCellSwipe\YPba
?????文件????????6148??2018-11-19?10:57??YPCellSwipe\YPCellSwipe\YPba
?????目錄???????????0??2018-11-29?01:30??__MACOSX\
?????目錄???????????0??2018-11-29?01:30??__MACOSX\YPCellSwipe\
?????目錄???????????0??2018-11-29?01:30??__MACOSX\YPCellSwipe\YPCellSwipe\
?????目錄???????????0??2018-11-29?01:30??__MACOSX\YPCellSwipe\YPCellSwipe\YPba
?????文件?????????120??2018-11-19?10:57??__MACOSX\YPCellSwipe\YPCellSwipe\YPba
?????目錄???????????0??2018-11-19?10:39??YPCellSwipe\YPCellSwipe\YPba
?????文件?????????629??2018-11-19?10:39??YPCellSwipe\YPCellSwipe\YPba
?????目錄???????????0??2018-11-29?01:30??__MACOSX\YPCellSwipe\YPCellSwipe\YPba
?????文件?????????176??2018-11-19?10:39??__MACOSX\YPCellSwipe\YPCellSwipe\YPba
?????文件????????1856??2018-11-19?10:39??YPCellSwipe\YPCellSwipe\YPba
?????文件?????????176??2018-11-19?10:39??__MACOSX\YPCellSwipe\YPCellSwipe\YPba
?????目錄???????????0??2018-11-19?10:39??YPCellSwipe\YPCellSwipe\YPba
?????文件?????????121??2018-11-19?10:39??YPCellSwipe\YPCellSwipe\YPba
?????文件?????????728??2018-11-19?10:39??YPCellSwipe\YPCellSwipe\YPba
?????文件??????369280??2018-11-19?10:53??YPCellSwipe\YPCellSwipe\YPba
?????文件?????????281??2018-11-19?11:00??YPCellSwipe\YPCellSwipe\AppDelegate.h
?????文件?????????171??2018-11-19?11:00??__MACOSX\YPCellSwipe\YPCellSwipe\._AppDelegate.h
?????文件????????6148??2018-11-19?11:03??YPCellSwipe\YPCellSwipe\.DS_Store
?????文件?????????120??2018-11-19?11:03??__MACOSX\YPCellSwipe\YPCellSwipe\._.DS_Store
?????目錄???????????0??2018-11-19?11:00??YPCellSwipe\YPCellSwipe\Assets.xcassets\
?????目錄???????????0??2018-11-19?11:00??YPCellSwipe\YPCellSwipe\Assets.xcassets\AppIcon.appiconset\
?????文件????????1590??2018-11-19?11:00??YPCellSwipe\YPCellSwipe\Assets.xcassets\AppIcon.appiconset\Contents.json
?????文件??????????62??2018-11-19?11:00??YPCellSwipe\YPCellSwipe\Assets.xcassets\Contents.json
?????目錄???????????0??2018-11-29?01:30??__MACOSX\YPCellSwipe\YPCellSwipe\Assets.xcassets\
?????文件?????????171??2018-11-19?11:00??__MACOSX\YPCellSwipe\YPCellSwipe\Assets.xcassets\._Contents.json
?????文件????????5033??2018-11-19?11:37??YPCellSwipe\YPCellSwipe\ViewController.m
?????文件?????????333??2018-11-19?11:37??__MACOSX\YPCellSwipe\YPCellSwipe\._ViewController.m
............此處省略127個文件信息
- 上一篇:RC濾波器計算器
- 下一篇:package control離線包
評論
共有 條評論