07 2015 档案
摘要:iOS9新出现的 /** Subclass for mass-spring animations. */ @interface CASpringAnimation : CABasicAnimation /* The mass of the object attached to the end of
阅读全文
摘要:// 1.设置动画时长 self.imageContainer.animationDuration = 5; // 2.设置动画重复次数 self.imageContainer.animationRepeatCount = 1; // 3.开始动画 [self.imageContainer star
阅读全文
摘要:// NSURL *url = [NSURL URLWithString:@"tel://10010"]; //打电话 NSURL *url = [NSURL URLWithString:@"sms://10010"]; //发短信 [[UIApplication sharedApplication] openURL:url];
阅读全文
摘要:- (void)viewDidLoad { [super viewDidLoad]; UIScrollView *scrollView = [[UIScrollView alloc] init]; scrollView.frame = self.view.bounds; scrollView.delegate = self; [scrollVie...
阅读全文
摘要:// 该方法在类被引用的时候就会调用一次,仅会调用一次 + (void)initialize { // 1.获取全局的统一样式的导航栏 UINavigationBar *bar = [UINavigationBar appearance]; [bar setBackgroundImage:[UIImage imageNamed:@"NavBar64"] forBarMet...
阅读全文
摘要:CATransition *animation = [[CATransition alloc]init]; animation.type = kCATransitionFromTop; animation.subtype = kCATransitionFromTop; //向上滚动,其他方向自己设置 animation.duration = 0.3; [s...
阅读全文
摘要:本文来自 http://www.jianshu.com/p/ef03ec7f23b2 轮播实现步骤 接下来,笔者将从各方面逐一分析 最底层是一个UIView,上面有一个UIScrollView以及UIPageControl,scrollView上有两个UIImageView,imageView宽高
阅读全文
摘要:目录CocoaPods是什么?如何下载和安装CocoaPods?如何使用CocoaPods?场景1:利用CocoaPods,在项目中导入AFNetworking类库场景2:如何正确编译运行一个包含CocoPods类库的项目CocoaPods是什么?当你开发iOS应用时,会经常使用到很多第三方开源类库...
阅读全文
该文被密码保护。
该文被密码保护。
摘要:void other() { // 获得NSCalendar NSCalendar *calendar = nil; if ([NSCalendar respondsToSelector:@selector(calendarWithIdentifier:)]) { calendar = [NSCalendar calendarWithIdentif...
阅读全文
摘要:UIAlertController *controller = [UIAlertController alertControllerWithTitle:nil message:nil preferredStyle:UIAlertControllerStyleActionSheet]; [controller addAction:[UIAlertAction actionWit...
阅读全文
摘要:UIRefreshControl *control = [[UIRefreshControl alloc] init]; [control addTarget:self action:@selector(loadNewTopics:) forControlEvents:UIControlEventV
阅读全文
摘要:在iOS7之后,苹果会自动给导航控制器里面的所有UIScrollView顶部都会添加额外的滚动区域64.
阅读全文
摘要:在提交更新的app至appstore中时,需要在**.plist中设置app的version信息。Bundle versions string, short CFBundleShortVersionString 面向用户市场的束的版本字符串--用户看到的版本号;Bundle version CFBu
阅读全文
摘要:Bundle display name 与 Bundle name 的区别是什么?"Bundle Name" and "Bundle display name"都设置为动态参数${PRODUCT_NAME}。Bundle name - is folder name, where your app (
阅读全文
摘要:- (void)motionBegan:(UIEventSubtype)motion withEvent:(UIEvent *)event{ if (event.subtype == UIEventSubtypeMotionShake) { NSLog(@"摇晃中"); } } - (BOOL)canBecomeFirstRespon...
阅读全文
摘要:if ([UIImagePickerController isSourceTypeAvailable:UIImagePickerControllerSourceTypeCamera]) { NSLog(@"有相机"); } if ([UIImagePickerController isCameraDeviceAvailable:UIImagePick...
阅读全文
摘要:#import AudioServicesPlayAlertSound(kSystemSoundID_Vibrate);
阅读全文
摘要:@property (nonatomic) BOOL clearsSelectionOnViewWillAppear NS_AVAILABLE_IOS(3_2); // defaults to YES. If YES, any selection is cleared in viewWillAppe
阅读全文
摘要:11111 222222 我是MT // 增加 // 1 document.write(''); // 2 // createElement根据标签名创建标签 var div = document.createElement('div'); div.innerHTML = '我是MT'; document.b...
阅读全文

浙公网安备 33010602011771号