摘要: //在苹果终端执行以下方法就可以就可以进行 Alcatraz 的安装 mkdir -p ~/Library/Application\ Support/Developer/Shared/Xcode/Plug-ins curl -L http://git.io/lOQWeA | tar xvz -C ~... 阅读全文
posted @ 2015-08-19 00:06 BN笨的很想飞 阅读(443) 评论(0) 推荐(0) 编辑
摘要: import UIKitvar str = "Hello, playground"func checkup(person:[String:String]){ //检查身份证 ,如果身份证没带,则不能进入考场 guardlet id = person["id"] else { print("没有身份证 阅读全文
posted @ 2016-11-01 11:40 BN笨的很想飞 阅读(172) 评论(0) 推荐(0) 编辑
摘要: - (IBAction)playPause:(UIButton *)sender{ //初始化播放器的时候如下设置 UInt32 sessionCategory = kAudioSessionCategory_MediaPlayback; AudioSessionSetProperty(kAudioSessionProperty_AudioCategory, ... 阅读全文
posted @ 2016-05-05 17:57 BN笨的很想飞 阅读(1674) 评论(0) 推荐(0) 编辑
摘要: [super.navigationController setNavigationBarHidden:isflage animated:TRUE]; 阅读全文
posted @ 2016-04-22 17:29 BN笨的很想飞 阅读(134) 评论(0) 推荐(0) 编辑
摘要: textFidlde.leftViewMode = UITextFieldViewModeAlways; UIButton *btnGetCode = [UIButton buttonWithType:UIButtonTypeCustom]; [btnGetCode addTarge... 阅读全文
posted @ 2016-01-06 15:23 BN笨的很想飞 阅读(168) 评论(0) 推荐(0) 编辑
摘要: UIAlertController *alertController = [UIAlertController alertControllerWithTitle:@"提示" message:@"静" preferredStyle:(UIAlertControllerStyleAlert)]; ... 阅读全文
posted @ 2016-01-06 10:24 BN笨的很想飞 阅读(241) 评论(0) 推荐(0) 编辑
摘要: -(id)diskImageDataBySearchingAllPathsForKey:(id)key{return nil;}+(CGSize)downloadImageSizeWithURL:(id)imageURL{ NSURL* URL = nil; if([imageURL isKin... 阅读全文
posted @ 2015-12-18 10:52 BN笨的很想飞 阅读(950) 评论(0) 推荐(0) 编辑
摘要: 暂停: [timer setFireDate:[NSDate distantFuture]]; distantFuture,就是问你未来有多远呢?好远好远就是无法到达的时间,所以 timer就一直等待不 fire了。也就是暂停了。继续: [timer setFireDate:[NSDate date... 阅读全文
posted @ 2015-11-17 15:41 BN笨的很想飞 阅读(722) 评论(0) 推荐(0) 编辑
摘要: 方法是在Info.plist中添加相应的白名单,如下所示(文本模式打开再添加) 此教程来自于网络LSApplicationQueriesSchemes wechat weixin sinaweibohd sinaweibo sinaweibosso... 阅读全文
posted @ 2015-11-16 22:44 BN笨的很想飞 阅读(1278) 评论(0) 推荐(0) 编辑
摘要: 用 self.backgroundColor = [[UIColor lightGrayColor] colorWithAlphaComponent:0.5];替换alpha 阅读全文
posted @ 2015-11-16 10:45 BN笨的很想飞 阅读(135) 评论(0) 推荐(0) 编辑
摘要: //xcode 7 找不到.dylib 用.tbd 替换 但是不能替换使用 可以使用以下方法添加//隐藏文件目录,target---build phases--- link binary with libraries---添加---add ohter---command+shift+G----/... 阅读全文
posted @ 2015-11-14 22:34 BN笨的很想飞 阅读(207) 评论(0) 推荐(0) 编辑