From 3da395167b8f581d0f2c2c3b262b8016460aa2a6 Mon Sep 17 00:00:00 2001 From: apache2046 Date: Mon, 7 Mar 2016 01:58:27 +0800 Subject: [PATCH] =?UTF-8?q?mainBundle=E8=BF=99=E7=A7=8D=E6=96=B9=E6=B3=95?= =?UTF-8?q?=E6=97=A0=E6=B3=95=E5=9C=A8=E5=B0=86LCActionSheet=E4=BD=9C?= =?UTF-8?q?=E4=B8=BAFramework=E6=97=B6=E6=AD=A3=E7=A1=AE=E6=89=BE=E5=88=B0?= =?UTF-8?q?=E8=B5=84=E6=BA=90=E5=8C=85=E8=B7=AF=E5=BE=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- LCActionSheet/LCActionSheet.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/LCActionSheet/LCActionSheet.m b/LCActionSheet/LCActionSheet.m index 96d56cc..8b0766c 100644 --- a/LCActionSheet/LCActionSheet.m +++ b/LCActionSheet/LCActionSheet.m @@ -177,7 +177,7 @@ - (void)setupMainView { [titleBgView addSubview:label]; } - NSString *bundlePath = [[NSBundle mainBundle] pathForResource:@"LCActionSheet" ofType:@"bundle"]; + NSString *bundlePath = [[NSBundle bundleForClass:self.class] pathForResource:@"LCActionSheet" ofType:@"bundle"]; if (self.buttonTitles.count) {