iOS 安装cocoapods报错ERROR: While executing gem
iOS 2年前 (2016-11-11) 3498浏览 0评论
安装指令 sudo gem install cocoapods 报错信息如下: ERROR: SSL verification error at depth 2: unable to get local issuer certifica...
iOS 2年前 (2016-11-11) 3498浏览 0评论
安装指令 sudo gem install cocoapods 报错信息如下: ERROR: SSL verification error at depth 2: unable to get local issuer certifica...
PHP 3年前 (2016-08-03) 1902浏览 0评论
之前在做一个composer包的时候,遇到过这种错误 比如:在vendor目录下面 Organization –Product –src –Symfony –Test –HelloWorld...
Git 3年前 (2016-05-05) 2112浏览 0评论
1.首先卸载CentOS自带的git1.7.1: 通过git –version查看系统带的版本,Cento6.5应该自带的是git版本是1.7.1 ># yum remove git 2.安装编译git时需要的包 ># yum...
Git 3年前 (2016-04-18) 1650浏览 0评论
git commit -m "提交信息" 这时如果我们可以把 “提交信息” 改成 “修改BUG” git commit –amend 进入vim -> i进入插入模...
Git 3年前 (2016-03-09) 2079浏览 0评论
touch README.md git init git add README.md git commit -m "first commit" git remote add origin git@git.oschina.net:m...
iOS 4年前 (2015-08-25) 2656浏览 0评论
在AViewController中弹出一个对话窗口,这里介绍一个方法。 思路是这个对话窗口,其实也是一个ViewController, 假设是ModalViewController 代码如下 // 判断系统版本 #define iOSVersi...
iOS 4年前 (2015-08-19) 5396浏览 0评论
常见的界面视图跳转已经有人发过了 1. ios 界面间跳转方法总结[原创] 2.iOS通过代码跳转到指定的StoryBoard【原创】 这里补充一下,做个备份 从xib跳转到storyboard UIStoryboard *storyBoard ...
iOS 4年前 (2015-06-26) 2593浏览 0评论
iOS 如何自定义状态栏字体颜色 1. 在.plist(一般是info.plist)文件中,设置UIViewControllerBasedStatusBarAppearance 为 YES 2. 在viewDidLoad中 添加 [sel...
iOS 4年前 (2015-05-30) 1963浏览 0评论
一 UI控件篇 1. TableViewCell如何清除点击时的颜色? 方法一:此方法不能会导致不能选中 - (BOOL)tableView:(UITableView *)tableView shouldHighlightRowAtIndexPa...
HTML+CSS 4年前 (2015-05-30) 2348浏览 0评论
最近在找一些学习资料,看到不错的学习网站,有的可以在线提交代码的网站, 需要连VPN 1.http://www.codecademy.com/ 可以学习HTML/CSS, JavaScript, jQuery, PHP, Python, Ruby的...
iOS 4年前 (2015-05-17) 2613浏览 0评论
iOS对字符串md5加密 // // NSString+MD5.h // // Created by IT985.com on 2013/07/19. // Copyright (c) 2013 Perk. All rights r...
iOS 4年前 (2015-05-17) 1526浏览 0评论
介绍下一个iOS对话框插件 https://github.com/jdg/MBProgressHUD 转载时请注明出处及相应链接,本文永久地址:https://blog.yayuanzi.com/11225.html 微信打赏 ...
iOS 4年前 (2015-05-05) 15168浏览 0评论
有时候项目中NSArray和NSMutableArray需要相互转化,下面给出相关代码 1.NSArray 1.1 转化:NSMutableArray NSMutableArray *mutableArray = [NSMutableAr...
PHP 4年前 (2015-05-01) 4700浏览 0评论
1.opencart1.5.6.4迁移网站时,访问网站例如http://xxx.com/有时会出现 Warning: require_once(/home/wwwroot/shop/web/system/startup.php) [functio...
iOS 4年前 (2015-04-17) 7252浏览 0评论
起初,我是在UITableViewCell中的方法: – (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *...
iOS 4年前 (2015-04-15) 31667浏览 3评论
在iOS中,有时会遇到设置虚线的问题,当然我们可以用图片来代替, 还有一种方法就是使用CAShapeLayer画出想要的虚线: 以下是代码 CAShapeLayer *shapeLayer = [CAShapeLayer layer]; [sh...
iOS 4年前 (2015-04-09) 38527浏览 2评论
默认情况下会有这条线 第一种方法: UINavigationBar *navigationBar = self.navigationController.navigationBar; // white.png图片自己下载个纯白色的色块,或者自...
PHP 4年前 (2015-04-02) 6403浏览 4评论
Symfony2如何用Entity新建数据库怎么加入表前缀 直接上代码: 假设我们在组织Acme下新建了DemoBundle了,比如src\Acme\DemoBundle 1.新建Entity php app/console --shell g...
PHP 4年前 (2015-04-02) 4863浏览 0评论
之前在看Symfony的说明书时,关于The Request Object这块, 看到Controller这个单元(http://symfony.com/doc/current/book/controller.html) use Symfony\...