摘要: plist文件root: 代表着存储的是什么类型的数据 如果root是array, 那么将来从文件中读取进来的就是数组 plist中的每一个item就代表着数组中的一个元素 item对应的类型, 就代表数组中每一个元素的类型自定义的plist文件的名称不能包含info这个单词,因为系统配置是info... 阅读全文
posted @ 2015-08-02 23:16 刘娇贤 阅读(329) 评论(0) 推荐(0) 编辑
摘要: UIView继承于UIView的控件都可以添加子控件属性superview谁调用superview, 那么获取的就是谁的父控件subviewssubviews是用于获取所有的子控件谁调用subviews, 那么就是获取谁的子控件方法removeFromSuperview从父控件中移除,谁调用就移除谁... 阅读全文
posted @ 2015-08-01 22:01 刘娇贤 阅读(233) 评论(0) 推荐(0) 编辑
摘要: 控制器1.什么是控制器: 任何继承于UIViewController的类, 都称之为控制器2.控制器的作用: 管理UI界面(负责管理UI界面的创建和一些事件的处理)IBAction连线方式1.从"控制器"往"Storyboard"连线2.从"Storyboard"往"控制器"连线3.直接在"Stor... 阅读全文
posted @ 2015-08-01 21:56 刘娇贤 阅读(321) 评论(0) 推荐(0) 编辑
摘要: 创建表create table username1(id int not null,name nvarchar(10) not null,age int not null,primary key(id));insert into username1(id,name,age)values (1,N'小妹',13);insert into username1(id,name,age)values (2,N'多少妹',33);insert into username1(id,name,age)values (3,N'地方',54);insert int 阅读全文
posted @ 2012-03-13 09:40 刘娇贤 阅读(344) 评论(0) 推荐(0) 编辑
摘要: using System;using System.Collections.Generic;using System.Linq;using System.Text;namespace 常量{ class Program { public const int pi = 3;//常量在所有函数中都可调用,不用new static void Main(string[] args) { const int ppp = 222;//局部常量 } }}----------using System;using System.Collections.Generic;using System.Linq;usin 阅读全文
posted @ 2012-03-13 09:32 刘娇贤 阅读(594) 评论(1) 推荐(2) 编辑
摘要: using System;using System.Collections.Generic;using System.Linq;using System.Text;namespace 函数{ class Program { static void Main(string[] args) { //练习1利用函数计算两个数的和 /* Console.WriteLine(Max(2,5)); Console.ReadKey(); */ //练习2 利用函数计算数组的和 /* int[] values = { 2,3,4,5,6,2,4,5,2,1,4,5}; int sum = values.S.. 阅读全文
posted @ 2012-03-05 20:59 刘娇贤 阅读(565) 评论(0) 推荐(0) 编辑
摘要: namespace 对象的引用{ class Program { static void Main(string[] args) { int i = 10; int j = i; i++; Console.WriteLine(j);//输出10值类型是传递拷贝,不能引用指向的值 Person a = new Person(); Person b = a; a.Shengao++; Console.WriteLine(b.Shengao);//对象是引用类型,是传递的引用。a变b变 Console.ReadKey(); } } class Person { private int shengao 阅读全文
posted @ 2012-03-03 18:18 刘娇贤 阅读(421) 评论(3) 推荐(1) 编辑
摘要: using System;using System.Collections.Generic;using System.Linq;using System.Text;namespace 练习{ class Program { static void Main(string[] args) { //第一个练习 /* int sum = 0; int i; for(i=1;i<101;i++) { sum = sum + i; } Console.WriteLine("{0}",sum); */ //练习2 /* string s = Console.ReadLine(); 阅读全文
posted @ 2012-02-29 20:15 刘娇贤 阅读(568) 评论(4) 推荐(0) 编辑
摘要: 今天我的博客开通了,从此我也有了我的小天地,我们人的生活方式有2种,第一种方式是像草一样活着,你尽管活着,每年还在成长,但是你毕竟是一颗草,你吸收雨露阳光,但是你长不大,人们可以踩过你,但是人们不会因为你的痛苦,而他产生痛苦,人们不会因为你被踩了,而怜悯你,因为人们本身就没有看到你。所以我们每一个人,都应该像树一样的成长,即使我们现在什么都不是,但是只要你有树的种子,即使被人踩到泥土中间,你依然能够吸收泥土的养分,自己成长起来,当你长成参天大树以后,遥远的地方,人们就能看到你,走近你,你能给人一片绿色,活着是美丽的风景,死了依然是栋梁之才,活着死了都有用,这就是我们每一个人,做人的标准和成长. 阅读全文
posted @ 2012-02-29 11:10 刘娇贤 阅读(173) 评论(0) 推荐(0) 编辑