摘要: 出现以下错误时, 关闭当前的工作空间,删除掉文件夹中的workspace,然后重新pod install,install完成之后,通过workspace打开工作空间,clean+build即可,如下所示 在pod install之前,请确保已经执行pod setup命令。 阅读全文
posted @ 2016-02-23 10:33 Ficow 阅读(208) 评论(0) 推荐(0) 编辑
摘要: @Strongify,@Weakify主要是在block中使用. 因为block一般都在对象内部声明.. 如果在block内部使用了当前对象的属性,就会造成循环引用(block拥有当前对象的地址,而当前对象拥有block的地址),而引起内存泄露,block和当前对象都无法释放. @weakify(s 阅读全文
posted @ 2016-02-19 13:01 Ficow 阅读(634) 评论(0) 推荐(0) 编辑
摘要: Debut - View Debugging - Capture View Hierarchy 当视图没有正常显示时,用view hierarchy进行调试,查看左边的分支里有没有加载对应的视图。 如果视图的确加载了,但是又没有显示出来,那么可能是由于视图的约束没有设置好,所以无法正常显示在调试的界 阅读全文
posted @ 2016-01-20 13:46 Ficow 阅读(640) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2016-01-20 00:22 Ficow 阅读(368) 评论(0) 推荐(0) 编辑
摘要: 一位网友的解释: 原址:http://www.cocoachina.com/bbs/read.php?tid-21295.html 阅读全文
posted @ 2016-01-19 16:18 Ficow 阅读(620) 评论(0) 推荐(0) 编辑
摘要: 1.StatusBar 20px 2.TableViewCell 44px 3.TabBar 49px 4.NavigationBar 44px 5.NaviBarIcon 20*20px 6.TabBarIcon 30*30px 阅读全文
posted @ 2016-01-19 12:02 Ficow 阅读(161) 评论(0) 推荐(0) 编辑
摘要: UIImageView设置为圆形的方法(效率比较低下,当需要显示很多圆形view的时候,非常不推荐这种方式): imageView.layer.masksToBounds = YES; imageView.layer.cornerRadius = self.Image.frame.size.widt 阅读全文
posted @ 2016-01-19 00:01 Ficow 阅读(1746) 评论(0) 推荐(0) 编辑
摘要: 1.AdjustFontSize 按command +/-进行字体大小调整 2.ATProperty @property专用,strong.assign.copy.weak IBOutlet 3.Backlight 高亮当前编辑行 4.ESJsonFormat JSON转为属性声明 5.FuzzyA 阅读全文
posted @ 2016-01-18 20:38 Ficow 阅读(263) 评论(0) 推荐(0) 编辑
摘要: 1.#pragma mark - 方法分割线 2.#pragma mark 要备注的内容 3.// MARK: 要备注的内容 4.// FIXME: 要备注的内容 5.// TODO: 要备注的内容 推荐使用Xcode插件XToDo,用于快速定位所有的//TODO:和//FIXME: ??? !!! 阅读全文
posted @ 2016-01-18 20:35 Ficow 阅读(679) 评论(0) 推荐(0) 编辑
摘要: 点击此处跳转到下载地址 简明教程: 对于非制表人,只需要添加空余时间-新建,然后点星期和节数有课的那个按钮,勾选自己有课的周数。全部勾好后,生成空余时间表。然后查看自己的空余时间表,并导出,发给制表人。 对于制表人,只需要添加空余时间-导入,然后选择非制表人发来的文件,即可导入此人的空余时间表文件。 阅读全文
posted @ 2016-01-17 19:53 Ficow 阅读(219) 评论(0) 推荐(0) 编辑
摘要: unsigned short nPort; //用于保存目标HTTP服务端口 CString strServer, strObject; //strServer用于保存服务器地址,strObject用于保存文件对象名称 DWORD dwServiceType, dwRet; //dwServiceType用于保存服务类型,dwRe... 阅读全文
posted @ 2016-01-17 19:27 Ficow 阅读(3600) 评论(0) 推荐(0) 编辑
摘要: 首先,VS打开项目的属性 然后设置如图: 转载自:http://www.cnblogs.com/zzuhjf/archive/2012/09/12/2681548.html 阅读全文
posted @ 2016-01-17 16:48 Ficow 阅读(2051) 评论(0) 推荐(0) 编辑
摘要: CString FicowGetDirectory() { BROWSEINFO bi; char name[MAX_PATH]; ZeroMemory(&bi, sizeof(BROWSEINFO)); bi.hwndOwner = AfxGetMainWnd()->GetSafeHwnd(); bi.pszDisplayName = name; ... 阅读全文
posted @ 2016-01-17 15:56 Ficow 阅读(10575) 评论(0) 推荐(0) 编辑
摘要: 第一种: system("start explorer http://http://www.baidu.com"); 第二种: ShellExecute(NULL, NULL, _T("http://www.baidu.com"), NULL, NULL, SW_SHOWNORMAL); 以上方法都 阅读全文
posted @ 2016-01-17 14:21 Ficow 阅读(906) 评论(0) 推荐(0) 编辑
摘要: 点击直达 阅读全文
posted @ 2016-01-17 12:41 Ficow 阅读(891) 评论(0) 推荐(0) 编辑
摘要: 点击直达 阅读全文
posted @ 2016-01-17 12:40 Ficow 阅读(295) 评论(0) 推荐(0) 编辑
摘要: 在对应对话框的初始化函数OnInitDialog()中添加以下代码: CString title; title.Format("%d",Id);//在标题栏动态显示Id的值 this->SetWindowText(title); 阅读全文
posted @ 2016-01-17 12:37 Ficow 阅读(1743) 评论(0) 推荐(0) 编辑
摘要: 其实可以在*Dlg.cpp中的BEGIN_MESSAGE_MAP中对IDCANCEL和自定义函数进行匹配就可以了。 如: 自定义的退出函数是OnClose(),则在BEGIN_MESSAGE_MAP中添加如下代码即可: ON_BN_CLICKED(IDCANCEL, &*Dlg::OnClose); 阅读全文
posted @ 2016-01-17 12:36 Ficow 阅读(964) 评论(0) 推荐(0) 编辑
摘要: 在CTestApp.h中声明一个int x;然后调用的方式如下:CTestApp *app = (CTestApp *)AfxGetApp(); //生成指向应用程序类的指针,Test处改为对应的项目名 app->x = 0; //访问变量x 阅读全文
posted @ 2016-01-17 12:34 Ficow 阅读(539) 评论(0) 推荐(0) 编辑
摘要: WinExec("程序路径",SW_SHOW); 阅读全文
posted @ 2016-01-17 12:32 Ficow 阅读(443) 评论(0) 推荐(0) 编辑
摘要: ShellExecute(NULL,TEXT("OPEN"),要打开的文件的路径,NULL,NULL,SW_SHOWNORMAL); ShellExecute(NULL, "open","要打开的文件夹路径,如D:\\", NULL, NULL, SW_SHOWNORMAL); 阅读全文
posted @ 2016-01-17 12:31 Ficow 阅读(614) 评论(0) 推荐(0) 编辑
摘要: CFileDialog的语法: CFileDialog(BOOL bOpenFileDialog,LPCTSTR lpszDefExt=NULL,LPCTSTR lpszFileName=NULL,DWORD dwFlags = OFN_HIDEREADONLY | OFN_OVERWRITEPRO 阅读全文
posted @ 2016-01-17 12:29 Ficow 阅读(4960) 评论(0) 推荐(0) 编辑
摘要: //// //// main.m //// TestBasis //// //// Created by ficow on 16/1/14. //// Copyright © 2016年 ficow. All rights reserved. //// // #import //////////////////////////////////////////////////////... 阅读全文
posted @ 2016-01-16 14:35 Ficow 阅读(164) 评论(0) 推荐(0) 编辑
摘要: #import @interface myClass1 : NSObject @property (nonatomic, copy) NSString *str; @end @implementation myClass1 @end @interface myClass : NSObject { } @property (nonatomic, retain) myClass1 *... 阅读全文
posted @ 2016-01-16 14:06 Ficow 阅读(246) 评论(0) 推荐(0) 编辑
摘要: 1.到golang.org下载golang 并安装。2.安装sublimetext ,打开之后 按ctrl+` 打开命令行,输入以下内容:import urllib2,os; pf='Package Control.sublime-package'; ipp=sublime.installed_pa... 阅读全文
posted @ 2016-01-10 01:08 Ficow 阅读(659) 评论(0) 推荐(0) 编辑
摘要: 显示Mac隐藏文件的命令:defaults write com.apple.finder AppleShowAllFiles -bool true隐藏Mac隐藏文件的命令:defaults write com.apple.finder AppleShowAllFiles -bool false输完单 阅读全文
posted @ 2016-01-09 21:55 Ficow 阅读(272) 评论(0) 推荐(0) 编辑
摘要: TCP: 服务器: 客户端: UDP: 服务器: 客户端: 阅读全文
posted @ 2016-01-09 21:42 Ficow 阅读(706) 评论(0) 推荐(0) 编辑
摘要: 转载自:http://blog.csdn.net/orange_xxx/article/details/7276868 ,谢谢原作者。 作为个人学习的笔记使用。 服务端: 客户端: 阅读全文
posted @ 2016-01-09 19:41 Ficow 阅读(1014) 评论(0) 推荐(0) 编辑
摘要: 尝试了多种方式之后都无法成功地在对话框程序中弹出一个单文档程序,然后我想到了这个办法。 如果直接在代码中实现某些窗口的弹出比较麻烦,可以采用这个方式来弹出这种窗口。 如果需要传递参数,只需将数据写入文件,然后再在弹出的窗口程序中对文件进行读取解析即可。 类似的,还可以通过socket在不同程序间进行 阅读全文
posted @ 2016-01-09 01:39 Ficow 阅读(346) 评论(0) 推荐(0) 编辑
摘要: 以VS2015中创建SDI为例 选择生成的类为:C***View,基类为CView,***为项目名 在***Doc.h和***Doc.cpp中创建数据模型,在***View.cpp的OnDraw()中通过pDoc指针获取Doc中的数据,并进行绘图 OnDraw(CDC* pDC)的/**/注释去掉, 阅读全文
posted @ 2016-01-09 01:31 Ficow 阅读(1459) 评论(0) 推荐(1) 编辑
摘要: 在OnDraw函数内定义后使用 使用时,要pDC->SelectObject(),如pDC->SelectObject(font); CPen://draw line Pen.CreatePen(PS_SOLID, 2, RGB(250, 0, 0)); pDC->MoveTo(x, y);//or 阅读全文
posted @ 2016-01-09 01:20 Ficow 阅读(705) 评论(0) 推荐(0) 编辑
摘要: 程序主窗口标题栏的一般形式为: 文档标题—主窗口标题 1.修改文档标题 修改CExamDoc::onNewDocument()函数为: BOOL CExamDoc::OnNewDocument() { if(!CDocument::OnNewDocument()) return FALSE; Set 阅读全文
posted @ 2016-01-08 14:47 Ficow 阅读(709) 评论(0) 推荐(0) 编辑
摘要: 1.启动服务器 sudo apachectl start http://localhost 能访问就ok sudo apachectl stop sudo apachectl restart httpd -v 2.配置 php sudo open /etc/apache2/httpd.conf Lo 阅读全文
posted @ 2016-01-08 09:37 Ficow 阅读(195) 评论(0) 推荐(0) 编辑
摘要: 适用于 对话框程序 1.在工具箱中拖出 ListControl,然后右键-属性,view-Report 让你的ListControl变成这幅模样! 2.添加ListControl控件的control类型变量(如:List,下文中要用到) 3.分列并添加点击选中一行的属性() 4.在listcontr 阅读全文
posted @ 2016-01-08 09:17 Ficow 阅读(2053) 评论(0) 推荐(0) 编辑
摘要: 在项目中,右击你想设置的控件,打开属性。 然后找到:控件事件,如果在Visual Studio 2015中操作,显示如图: 然后,以设定单击事件为例: 点击右边的三角,选择 <Edit Code> 这时,IDE会自动跳转到对应的函数,编辑代码即可。 如果需要重命名函数,需要修改3处。 1.修改头文件 阅读全文
posted @ 2016-01-08 08:47 Ficow 阅读(1060) 评论(0) 推荐(0) 编辑
摘要: 右键划线部分,打开属性,然后找到:配置属性-常规-字符集,选择:使用多字节字符集 然后,char *c;CString str; 就可以 strcpy(c,str); 如果觉得好用,请点个赞,谢谢! 阅读全文
posted @ 2016-01-08 08:34 Ficow 阅读(645) 评论(0) 推荐(0) 编辑
摘要: MessageBox 一、消息框是个很常用的控件,属性比较多,本文列出了它的一些常用方法,及指出了它的一些应用场合。1.MessageBox("这是一个最简单的消息框!");2.MessageBox("这是一个有标题的消息框!","标题");3.MessageBox("这是一个确定 取消的消息框!" 阅读全文
posted @ 2016-01-07 15:05 Ficow 阅读(1008) 评论(0) 推荐(0) 编辑
摘要: 1.记得在项目中设置项目文件命名的prefix,避免命名冲突。 2.在适当的位置对属性和方法进行注释,建议利用插件(如VVDocument)提供效率。在给企业看文档时,可以利用(如Doxygen)这种软件生成一个document。 3.操作CoreData需要谨慎,小小改动都有可能让程序崩溃。 4. 阅读全文
posted @ 2015-12-21 09:58 Ficow 阅读(176) 评论(0) 推荐(0) 编辑
摘要: The id type simply says a method will return a reference to an object. It could be any object of any type.The instancetype type says a method will ret 阅读全文
posted @ 2015-12-15 10:15 Ficow 阅读(149) 评论(0) 推荐(0) 编辑
摘要: Scale:拉伸图片,图片变形。 Aspect:图片长宽的保持比例,图片不变形。 Aspect Fill(常用):图像充满容器。以长宽中小的参数为限制。 Aspect Fit:图像在容器中完整显示。以长宽中大的参数为限制。 Scale To Fill: 缩放图片,使图片充满容器。图片未必保持长宽比例 阅读全文
posted @ 2015-12-14 09:54 Ficow 阅读(1057) 评论(0) 推荐(0) 编辑