learning ios 9

  • 下拉刷新UIRefreshControl

  • 集成pictrues browser

    [UIView animateWithDuration:0.7 animations:^{
      btn.transform = CGAffineTransformMakeTranslation(0, btnH);
    } completion:^(BOOL finished) {
    [UIView animateKeyframesWithDuration:0.7 delay:1.0  options:UIViewKeyframeAnimationOptionCalculationModeLinear animations:^{
    // btn.transform = CGAffineTransformMakeTranslation(0, -btnH);
     btn.transform = CGAffineTransformIdentity;
    } completion:^(BOOL finished) {
      [btn removeFromSuperview];
    }];
    }];
    
  • 写图片进入相册 UIImageWriteToSavedPhotoAlbum(image,nil.nil,nil)

  • UIBarButtonItem的setTitleTextAttributes对Disabled颜色设置无效问题解决方法:将设置为disabled的语句放置在viewWillAppear方法中。

  • becomeFirstResponser 调起键盘

  • 模拟器不显示键盘 iOS Simulator -> Hardware -> Keyboard取消选择:“Connect Hardware Keyboard”