`
zjjzmw1
  • 浏览: 1354786 次
  • 性别: Icon_minigender_1
  • 来自: 开封
社区版块
存档分类
最新评论
文章列表
这里我们以UMeng捕获的错误信息举例: 原文:http://blog.csdn.net/smking/article/details/9342899   从友盟中, 我们可能会得到如下信息: Application received signal SIGSEGV   (null) ( 0 CoreFoundation 0x359348a7 __exceptionPreprocess + 186 1 libobjc.A.dylib 0x37cdb259 objc_exception_ ...
///设置动画的节奏。。。。EaseIn 就是刚进入的时候慢。。。   animation.timingFunctino  = [CAMediaTimingFunction functionWithName:KCAMediaTimingFunctionEaseInaseOut];      if (self.link) return;         // 1秒内刷新60次——刷新快的时候比NSTimer好。     CADisplayLink *link = [CADisplayLink displayLinkWithTarget:self selector:@selector ...
转载自:http://blog.csdn.net/rhljiayou/article/details/9919713   高斯模糊  UIBlurEffect *blur = [UIBlurEffect effectWithStyle:UIBlurEffectStyleDark];          UIVisualEffectView *effectView = [[UIVisualEffectView alloc]initWithEffect:blur];     effectView.frame = CGRectMake(0, 0, imageView.frame.size ...

画水波纹。

    博客分类:
  • iOS
#import "VWWWaterView.h"   @interfaceVWWWaterView () {     UIColor *_currentWaterColor;          float _currentLinePointY;///水的top。          float a;///水上下抖动的幅度。。。     float b;          BOOL jia; } @end
#coding=utf8 import urllib import urllib2 import json   test_data = json.dumps({'Command':'DoLogin','SequenceID':'0','CheckDigit':'0','Body':{'CityID':'1','Mobile':'13810370267','Password':'123456'}})   api = 'http://north.app.daojia.com.cn/apple.2.6.0.php'   headers = {'Accept': '*/*','Con ...
- (void) textFieldDidBeginEditing:(UITextField *)textField { //    [self animateTextField:textField up:YES];     [ViewControllerFactoryanimateTextField:textField up:YESviewController:self]; } - (void) textFieldDidEndEditing:(UITextField *)textField { //    [self animateTextField:textField up: ...
原文地址:http://www.cnblogs.com/tangbinblog/archive/2012/12/07/2807088.html       iOS RunLoop 初识   今天突然才之间才意识到NSTimer这样的运行方式,是在多线程中实现的循环还是在主线程中去实现的呢。当然不可能是在主线程中的whil ...
转载:http://www.cocoachina.com/bbs/read.php?tid=217107&page=1&toread=1#tpc       iOS8下的开发变化(另,还有未解问题,欢迎大神赐教)        分享类型:应用开发相关
 ///去掉section的黏性。不让其置顶。     CGFloat sectionHeaderHeight = 40;     if (scrollView.contentOffset.y<=sectionHeaderHeight&&scrollView.contentOffset.y>=0) {         scrollView.contentInset = UIEdgeInsetsMake(-scrollView.contentOffset.y, 0, 0, 0);     } else if (scrollView.contentOffset ...
#pragma mark - 控制scrolLView,随时隐藏显示naviBar-   #pragma mark - 控制scrolLView,随时隐藏显示naviBar-   - (void)scrollViewWillEndDragging:(UIScrollView *)scrollView withVelocity:(CGPoint)velocity targetContentOffset:(inout CGPoint *)targetContentOffset {     SJBLog(@"y===%f",scrollView.contentOff ...
 刷新UICollectionView的时候不能直接用   reload方法。。。 [self reloadInputViews]; ///这句至关重要。。。。     NSIndexPath *indexPath = [self.collectionViewindexPathForCell:slideDeleteCell];          [self.collectionViewperformBatchUpdates:^(void) {         [_myData removeObjectAtIndex:indexPath.row];         [self.c ...
http://blog.csdn.net/like7xiaoben/article/details/9250189     //检查前后摄像头 BOOL cameraAvailable = [UIImagePickerController isCameraDeviceAvailable:UIImagePickerControllerCameraDeviceRear];//前 BOOL frontCameraAvailable = [UIImagePickerController isCameraDeviceAvailable:UIImagePickerControllerCamera ...
CADebugPrintf.h file not found   下载官网的speakhere,运行ok。复制拷贝到自己的项目,提示CADebugPrintf.h file not found。 网上找到如下:   select the Target, open the Build Settings pane, search for "Preprocessor Macros". Leave the fields blank (I've got rid of a DEBUG entry)   就是把Preprocessor Macros参数的值清空即可   ...
UIPasteboard *pasteboard = [UIPasteboard generalPasteboard];       [pasteboard setString:@"张明炜213"];   上面这两句话就实现了,把“张明炜213"复制到剪切板里面了...
#define kDegreesToRadian(x) (M_PI * (x) / 180.0)   #define kRadianToDegrees(radian) (radian*180.0)/(M_PI)   - (void)viewDidLoad {     [superviewDidLoad];     self.title = @"测试动画";     self.view.backgroundColor = [UIColorlightGrayColor];               myTest1 = [[UILabelalloc]ini ...
Global site tag (gtag.js) - Google Analytics