随笔分类 -  IOS

IOS 开发
摘要:1、 2、 3、 4、vue.js调用 阅读全文
posted @ 2017-12-25 15:28 xiaoxiaoxigua 阅读(3803) 评论(0) 推荐(0) 编辑
摘要:1、原生调用vue.js 某个vue组件下的方法。 比如**.vue里面有个这样的方法: 如果这样的话,在iOS或者Android里面是调用不了这个ajax方法的。 需要在**.vue (我的版本是vue1.0)。 在iOS里面调用js方法: 。 阅读全文
posted @ 2017-12-25 15:24 xiaoxiaoxigua 阅读(4543) 评论(0) 推荐(0) 编辑
摘要:+ (BOOL)getProxyStatus { NSDictionary *proxySettings = NSMakeCollectable([(NSDictionary *)CFNetworkCopySystemProxySettings() autorelease]); NSArray *p 阅读全文
posted @ 2017-03-27 11:10 xiaoxiaoxigua 阅读(832) 评论(0) 推荐(0) 编辑
摘要:- (UIImage *)imageWithCornerRadius:(CGFloat)radius { CGRect rect = (CGRect){0.f, 0.f, self.size}; UIGraphicsBeginImageContextWithOptions(self.size, NO 阅读全文
posted @ 2017-02-17 15:49 xiaoxiaoxigua 阅读(112) 评论(0) 推荐(0) 编辑
摘要:- (NSArray *)rangesOfString:(NSString *)searchString inString:(NSString *)str { NSMutableArray *results = [NSMutableArray array]; NSRange searchRange 阅读全文
posted @ 2016-12-27 11:21 xiaoxiaoxigua 阅读(273) 评论(0) 推荐(0) 编辑
摘要:1、需要引入#import <AVFoundation/AVFoundation.h>头文件, 2、在需要播放的地方添加: AudioServicesAddSystemSoundCompletion(kSystemSoundID_Vibrate, NULL, NULL, systemAudioCal 阅读全文
posted @ 2016-08-19 11:43 xiaoxiaoxigua 阅读(252) 评论(0) 推荐(0) 编辑
摘要:程序被硬关闭后,只能执行这三个回调,而且必须写在appdelegate中,退出ibeacons信息区域时会有延时10秒左右,进入时无延时- (void)locationManager:(CLLocationManager *)manager didDetermineState:(CLRegionSt 阅读全文
posted @ 2016-07-27 17:32 xiaoxiaoxigua 阅读(567) 评论(0) 推荐(0) 编辑
摘要:资源文件都是放在根目录下 1、index.html <html> <head> <title>My test Page</title> <link rel="stylesheet" href = "test.css" type="text/css"/> <script type = "text/ja 阅读全文
posted @ 2016-06-12 11:03 xiaoxiaoxigua 阅读(1190) 评论(0) 推荐(0) 编辑
摘要:1、新建分类 #import "UIViewController+swizzling.h"#import <objc/runtime.h>@implementation UIViewController (swizzling)//load方法会在类第一次加载的时候被调用//调用的时间比较靠前,适合在 阅读全文
posted @ 2016-05-16 14:50 xiaoxiaoxigua 阅读(1054) 评论(0) 推荐(0) 编辑
摘要:self.view.window.rootViewController.modalPresentationStyle = UIModalPresentationCurrentContext; //半透明 BiaoQianViewController *biaoQianVC = [[BiaoQi... 阅读全文
posted @ 2015-09-23 13:43 xiaoxiaoxigua 阅读(272) 评论(0) 推荐(0) 编辑
摘要:CATransition *animation = [CATransition animation]; animation.duration = 0.4; animation.timingFunction = UIViewAnimationCurveEaseInOut; animation.f... 阅读全文
posted @ 2015-09-18 11:37 xiaoxiaoxigua 阅读(244) 评论(0) 推荐(0) 编辑
摘要:UIView *view2 = [[UIView alloc] initWithFrame:CGRectMake(120, 10, 80, 80)]; view2.backgroundColor = [UIColor redColor]; [self.view addSubview:view2]; ... 阅读全文
posted @ 2015-08-03 14:18 xiaoxiaoxigua 阅读(1102) 评论(0) 推荐(0) 编辑
摘要:iOS7光标问题有网友遇到textView在ios7上出现编辑进入最后一行时光标消失,看不到最后一行,变成盲打,stackOverFlow网站上有大神指出,是ios7本身bug,加上下面一段代码即可(网友调试得出,在此mark一下,有问题,欢迎大神们指出)1234567891011121314151... 阅读全文
posted @ 2015-07-28 19:38 xiaoxiaoxigua 阅读(189) 评论(0) 推荐(0) 编辑
摘要:http://blog.csdn.net/volcan1987/article/details/9969455 阅读全文
posted @ 2015-07-06 16:02 xiaoxiaoxigua 阅读(107) 评论(0) 推荐(0) 编辑
摘要:SSKeyChains 阅读全文
posted @ 2015-03-03 14:44 xiaoxiaoxigua 阅读(199) 评论(0) 推荐(0) 编辑
摘要:1、判断是否安装了app Open scheme(mtcmtc) defined in iPhone with parameters open unknown with fallback to appstore Only... 阅读全文
posted @ 2014-12-23 10:30 xiaoxiaoxigua 阅读(7846) 评论(0) 推荐(0) 编辑
摘要:转自:http://blog.iosxcode4.com/archives/160 用到的FrameWork有: MediaPlayer.framework,QuartzCore.framework,CoreVideoframework,CoreMedia.framework,AVFoundatio 阅读全文
posted @ 2014-05-08 10:42 xiaoxiaoxigua 阅读(4464) 评论(1) 推荐(0) 编辑
摘要:- (void)willPresentAlertView:(UIAlertView *)alertView{ UIView * view = [alertView.subviews objectAtIndex:2]; if([view isKindOfClass:[UILabel class]]){ UILabel* label = (UILabel*) view; CGRect frame = label.frame; frame.origin.x +=10; label.frame = frame; label.textAlignment = UIText... 阅读全文
posted @ 2013-12-09 14:09 xiaoxiaoxigua 阅读(218) 评论(0) 推荐(0) 编辑
摘要:http://www.cnblogs.com/tangbinblog/archive/2012/07/11/2586472.html 阅读全文
posted @ 2013-12-02 10:17 xiaoxiaoxigua 阅读(126) 评论(0) 推荐(0) 编辑
摘要:NSArray *paths = NSSearchPathForDirectoriesInDomains(NSDocumentDirectory,NSUserDomainMask, YES); NSString *documentsDirectory = [paths objectAtIndex:0]; NSString *savedImagePath = [documentsDirectory stringByAppendingPathComponent:@"savedImage.png"]; //also be .jpg or another ... 阅读全文
posted @ 2013-09-04 15:22 xiaoxiaoxigua 阅读(171) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示