自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(10)
  • 收藏
  • 关注

原创

http://www.cnblogs.com/dragonbattlesun/p/3844375.html

2015-04-23 14:20:45 242

原创 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

原创 iOS 取消tabbar双击返回

- (BOOL)tabBarController:(UITabBarController *)tabBarController shouldSelectViewController:(UIViewController *)viewController { if ([viewController isKindOfClass:[UINavigationController class

2014-06-30 17:28:56 481

原创 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

原创 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

原创 iOS 获取当前网页html

NSString *lJs = @"document.documentElement.innerHTML";//获取当前网页的html self.currentHTML = [webView stringByEvaluatingJavaScriptFromString:lJs];

2014-06-20 11:19:37 472

转载 ios 屏幕旋转大全

如果希望所有界面不可以旋转 则可也在Target —> general 的 device orientation 禁止掉就可以了 或者也可以在AppDelegate中增加,这个方法可以禁止横屏 - (NSUInteger)application:(UIApplication *)application supportedInterfaceOrientationsForWindow:(U

2014-06-20 11:16:20 394

原创 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

原创 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

原创 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

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除