![](https://img-blog.csdnimg.cn/20201014180756930.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
iOS
qiaofu_16
这个作者很懒,什么都没留下…
展开
-
iOS 取消tabbar双击返回
- (BOOL)tabBarController:(UITabBarController *)tabBarController shouldSelectViewController:(UIViewController *)viewController { if ([viewController isKindOfClass:[UINavigationController class原创 2014-06-30 17:28:56 · 481 阅读 · 0 评论 -
iOS 获取当前网页html
NSString *lJs = @"document.documentElement.innerHTML";//获取当前网页的html self.currentHTML = [webView stringByEvaluatingJavaScriptFromString:lJs];原创 2014-06-20 11:19:37 · 472 阅读 · 0 评论 -
iOS 图片翻转
- (UIImage *)image:(UIImage *)image rotation:(UIImageOrientation)orientation { long double rotate = 0.0; CGRect rect; float translateX = 0; float translateY = 0; float scaleX = 1.0原创 2014-06-20 11:39:22 · 357 阅读 · 0 评论 -
collectionView
_collectionView = [[PSCollectionView alloc] initWithFrame:CGRectMake(0, 0, 320, WinSize.height-64-49)]; self.collectionView.backgroundColor = BGCOLOR;//[UIColor colorWithPatternImage:[UIImage imag原创 2014-06-20 11:10:13 · 531 阅读 · 0 评论 -
iOS for循环写button
#define Start_X 5.0f // 第一个按钮的X坐标 #define Start_Y 5.0f // 第一个按钮的Y坐标 #define Width_Space 5.0f // 2个按钮之间的横间距 #define Height_Space 5.0f // 竖间距 #define Button_Height 175原创 2014-06-20 11:29:57 · 561 阅读 · 0 评论 -
UITextField 垂直居中 首字母大写
self.passWordField.placeholder = @"请输入密码"; self.passWordField.font = [UIFont systemFontOfSize:14]; self.passWordField.backgroundColor = [UIColor whiteColor]; self.passWordField.delegate =原创 2014-06-20 10:58:02 · 563 阅读 · 0 评论 -
ios 屏幕旋转大全
如果希望所有界面不可以旋转 则可也在Target —> general 的 device orientation 禁止掉就可以了 或者也可以在AppDelegate中增加,这个方法可以禁止横屏 - (NSUInteger)application:(UIApplication *)application supportedInterfaceOrientationsForWindow:(U转载 2014-06-20 11:16:20 · 394 阅读 · 0 评论 -
UITabBarController TabBar初始化
_tabBarController = [[BaseTabBarViewController alloc] init]; self.tabBarController.viewControllers = [[NSMutableArray alloc] initWithObjects:sellerNav,cardNav,loginNav, nil]; self.tabBarContro原创 2014-06-18 16:36:22 · 630 阅读 · 0 评论 -
iOS 字符串按照word分割成数组
- (NSArray *)words { #if ! __has_feature(objc_arc) NSMutableArray *words = [[[NSMutableArray alloc] init] autorelease]; #else NSMutableArray *words = [[NSMutableArray alloc] init]; #endif原创 2014-06-30 17:31:02 · 484 阅读 · 0 评论 -
库
http://www.cnblogs.com/dragonbattlesun/p/3844375.html原创 2015-04-23 14:20:45 · 242 阅读 · 0 评论