用ios做的一个简单的记事本】的更多相关文章

#import "ViewController.h" @interface ViewController ()@property (weak, nonatomic) IBOutlet UITextField *标题;  //用的是一个text按键 @property (weak, nonatomic) IBOutlet UITextView *文本;  //用的是一个text view按键 @end @implementation ViewController- (IBAction)创…
用Qt实现一个简单的记事本: #include "helloqt.h" #include <qfiledialog.h> #include <qfile.h> #include <qmessagebox.h> #include <qtextstream.h> #include <qdebug.h> //#if _MSC_VER >= 1600 //#pragma execution_character_set("…
原文:http://www.raywenderlich.com/2941/how-to-write-a-simple-phpmysql-web-service-for-an-ios-app 作为一个iPhone/iPad开发者,能够自己写一个简单的web服务器将是很有用的. 例如,你可能希望在软件启动时显示一些来自服务器的更新,或者在服务器端保存一些用户数据.除了你的想象力,没有什么能限制你了. 在第一篇中,我们将会一步一步的建立一个web服务器,基于promo code system(促销码系…
在这个随笔中,我们要为iPhone实现一个简单的画板App. 首先需要指出的是,这个demo中使用QuarzCore进行绘画,而不是OpenGL.这两个都可以实现类似的功能,区别是OpenGL更快,但是QuarzCore更简单.   第一步,新建Xcode项目,项目名称就叫SimplePaint. 第二步,添加QuarzCore.framework到项目中.     第三步,创建一个新类,类名叫Line.它代表在iPhone的屏幕上绘画时候的线.因为不管是画一条直线还是一条曲线,都可以看做是多条…
直接NSLog(@"current_device:%@",[UIDevice currentDevice].model); 即可看出它输出的是当前设备,所以根据这个字符串可简单的判断当前是什么设备,进而实现一些要求不严格的操作,例如 打电话,分辨率资源配置等 NSString *device = [[UIDevice currentDevice].model substringToIndex:4]; if ([device isEqualToString:@"iPho&quo…
execCommand 当一个 HTML 文档切换到设计模式(designMode)时,文档对象暴露 execCommand 方法,该方法允许运行命令来操纵可编辑区域的内容.大多数命令影响文档的选择(粗体,斜体等),而其他命令插入新元素(添加链接)或影响整行(缩进).当使用 contentEditable 时,调用 execCommand() 将影响当前活动的可编辑元素. 1.用法: bool = document.execCommand(aCommandName, aShowDefaultUI…
http://blog.csdn.net/jasonblog/article/details/21977481 近期需要写一个交互有点DT的日历控件,具体交互细节这里略过不表. 不过再怎么复杂的控件,也是由基础的零配件组装起来的,这里最基本的就是日历控件. 先上图: 从图中可以看出日历控件就是由一个个小方块组成的,每一行有7个小方块,分别表示一周的星期天到星期六. 给定一个月份,我们首先需要知道这个月有多少周.那么如何确定一个月有多少周呢? 我是这么想的,在NSDate上做扩展: @interf…
#include "stdio.h" #include "stdlib.h" #include "time.h" //随机函数的头文件 main() { ; while(c) { srand((unsigned)time(NULL)); //按照时间改变来做随机 game=rand()%; //让电脑随机输出1.2.3 printf("你出什么?\n1.布\n2.锤子\n3.剪刀\n4.不玩了\n"); scanf("…
using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows.Forms; namespace Notepad { public partial c…
using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows.Forms; namespace Notepad { public partial c…