1. 对于做视频横屏播放的情况下:做旋转有3种方法. 第一种:就是网上说的用旋转矩阵方法CGAffineTransformMakeRotation来做,直接旋转某个view,之后setFrame,至于状态栏,全屏横屏之后就隐藏吧.这种方法有个弊端是音量图标不能随着一起旋转,QA到时候会挑BUG. 第二种:就是打开工程设置前面也说了弄个导航控制器. 第三种:就是前面说的- (NSUInteger)application:(UIApplication *)applicationsupportedIn…
1. git log git log 96a6f18b1e0a1b7301cb4f350537d947afeb22bc -p -1 我们常用 -p 选项展开显示每次提交的内容差异,用 -2 则仅显示最近的两次更新: https://git-scm.com/book/zh/v1/Git-%E5%9F%BA%E7%A1%80-%E6%9F%A5%E7%9C%8B%E6%8F%90%E4%BA%A4%E5%8E%86%E5%8F%B2 2.ios framework中使用了 Category 的时候,…
1. ; double duration = 10.0f; ; i<count; i++) { //旋转动画 CABasicAnimation *anima3 = [CABasicAnimation animationWithKeyPath:@"transform.rotation"]; anima3.toValue = [NSNumber numberWithFloat:M_PI*]; anima3.beginTime = (1.0/count)*duration*i; ani…
1.模版除了传参,还可以自动创建.而传指针只是传参而已. template <class TYPE, class FUNCTOR, class ACE_LOCK, typename TIME_POLICY = ACE_Default_Time_Policy> class ACE_Timer_List_T : public ACE_Timer_Queue_T<TYPE, FUNCTOR, ACE_LOCK, TIME_POLICY> { public: /// Type of ite…
1.上下左右 [tipsLabel setTranslatesAutoresizingMaskIntoConstraints:NO]; { id view1 = tipsLabel; id view2 = self; //子view的上边缘离父view的上边缘 NSLayoutConstraint *contraint1 = [NSLayoutConstraint constraintWithItem:view1 attribute:NSLayoutAttributeTop relatedBy:…
1.Xcode 9.0中新增的API版本检查@available https://www.jianshu.com/p/0a94baa6c3dd https://www.jianshu.com/p/b877be6d6570…
1. http://icon.wuruihong.com/ https://www.jianshu.com/p/684751c14735 2.status bar UIViewControllerBasedStatusBarAppearance = NO时: UIApplication 的setStatusBarStyle方法生效:[[UIApplication sharedApplication] setStatusBarStyle:UIStatusBarStyleLightContent];…
1. https://yq.aliyun.com/ziliao/386827…
1. - (void) animate { [UIView animateWithDuration:0.9 animations:^{ CGAffineTransform transform = CGAffineTransformMakeScale(2.5, 2.5); self.countdownLabel.transform = transform; self.countdownLabel.alpha = ; } completion:^(BOOL finished) { if (finis…
1. xcodebuild -exportArchive -exportFormat ipa -archivePath RongChatRoomDemo\ 17-7-13\ 下午4.04.xcarchive -exportPath RongChatRoomDemo.ipa http://www.jianshu.com/p/2dc50294e14c…