- 博客(12)
- 资源 (1)
- 收藏
- 关注
原创 iOS 瀑布流的简单用法
- (void)viewDidLoad{ [super viewDidLoad]; mainScrollView = [[UIScrollView alloc] initWithFrame:self.view.bounds]; [self.view addSubview:mainScrollView]; pullArray = [NSMutableArray arr
2016-01-29 14:09:08 479
原创 ios系统地图的定位功能
#import "LocationViewController.h"#import <CoreLocation/CoreLocation.h>@interface LocationViewController ()<CLLocationManagerDelegate>{ CLLocationManager * _locationManager ;}@end@implementati
2016-01-29 14:07:46 357
原创 ios 应用程序之间的跳转
//被跳转的应用程序1.找到偏好设置xx-info.plist2.新建一行(点击加号或者右键addrow)3.在item0里面找到url identifier:设置url标示符(这一步可有可无)4.在item0里面点击加号,新建一行。选择:url schemes5.设置url schemes(应用程序跳转的标志)//跳转的应用程序//标示符:application1 //“:”表
2016-01-29 14:05:32 321
原创 ios textField详解
//初始化textfield并设置位置及大小 UITextField *text = [[UITextField alloc]initWithFrame:CGRectMake(20, 20, 130, 30)]; //设置边框样式,只有设置了才会显示边框样式 text.borderStyle = UITextBorderStyleRoundedRect; typedef enum
2016-01-28 16:34:25 376
原创 ios改变导航栏颜色及其字体颜色
改变系统导航栏颜色 [self.navigationController.navigationBar setBarTintColor:[UIColor colorWithRed:237/255.0 green:10/255.0 blue:34/255.0 alpha:1.0]];改变导航栏字体颜色[self.navigationController.navigationBar setTitle
2016-01-28 16:32:41 411
原创 ios手机号正则表达式
//检查是否为手机号的方法-(BOOL)checkPhoneNumInput:(NSString *)phoneStr{ NSString *photoRange = @"^1(3[0-9]|4[0-9]|5[0-9]|7[0-9]|8[0-9])\\d{8}$";//正则表达式 NSPredicate *regexMobile = [NSPredicate predicateW
2016-01-28 09:54:24 479
原创 iOS 时间戳和标准时间的转换
- (NSString *)timerWith:(NSString *)time{ NSDateFormatter *formatter = [[NSDateFormatter alloc] init]; [formatter setDateFormat:@"yyyyMMdd"]; NSString *str = [NSString stringWithFormat:@"%
2016-01-28 09:51:29 530
原创 iOS btn文字居左
rightBtn.contentHorizontalAlignment = UIControlContentHorizontalAlignmentLeft;rightBtn.titleEdgeInsets = UIEdgeInsetsMake(0, 10, 0, 0);
2016-01-28 09:50:57 400
原创 iOS更改状态栏字体颜色
状态栏的字体为黑色:UIStatusBarStyleDefault状态栏的字体为白色:UIStatusBarStyleLightContent一、在info.plist中,将View controller-based status bar appearance设为NO状态栏字体的颜色只由下面的属性设定,默认为白色:// default is UIStatusBarStyleDefault[UIApp
2016-01-28 09:49:39 365
转载 iOS 名称的国际化
iOS名称的国际化 转自本人新浪博客 http://blog.sina.com.cn/s/blog_b5fba8a20102ymuk.html
2016-01-28 09:46:14 305
原创 ios9 xcode7 UIAlertController的常用用法
// 初始化一个一个UIAlertController // 参数preferredStyle:是IAlertController的样式 // UIAlertControllerStyleAlert 创建出来相当于UIAlertView // UIAlertControllerStyleActionSheet 创建出来相当于 UIActionSheet UIAlert
2016-01-28 09:42:27 370
原创 ios打包 蒲公英生成二维码扫描下载
http://www.pgyer.com 用第三方蒲公英网站打包成二维码扫一扫就可以安装(推荐)前提:调试证书,发布证书,都已经安装在你电脑了 然后等一下 接着就是会这个页面 接着是这个页面 选第二个save for ad hoc 到这里扫一下二维码就可以在远方下载测试了,谢谢! 本博客作者原创,转载请注明出处,谢谢合作!
2016-01-28 09:37:45 5994
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人