摘要: //非原创 看TableView的资料其实已经蛮久了,一直想写点儿东西,却总是因为各种原因拖延,今天晚上有时间静下心来记录一些最近学习的TableView的知识。下面进入正题,UITableView堪称UIKit里面最复杂的一个控件了,使... 阅读全文
posted @ 2015-08-07 12:45 OIMMZC 阅读(372) 评论(0) 推荐(0)
摘要: 1、我们的app一般默认的名字是我们的工程名字,所以我们一般会更改一个更加友好的名字,更改的方法如下图:找到InfoPlist.strings文件,在里面添加语句CFBundleDisplayName="你的APP的名字";2、关于怎么设置图标选中你的工程的名字(图上1位置),然后向下拉,找到APP... 阅读全文
posted @ 2015-08-07 08:30 OIMMZC 阅读(911) 评论(1) 推荐(0)
摘要: #import @interface ViewController : UIViewController@end#import "ViewController.h"@interface ViewController ()@end@implementation ViewController- (voi... 阅读全文
posted @ 2015-08-04 11:29 OIMMZC 阅读(290) 评论(0) 推荐(0)
摘要: #import "ViewController.h"#import @interface ViewController : UIViewController{ UILabel *lable; NSArray *array;}@end@interface ViewController ()@end... 阅读全文
posted @ 2015-08-03 13:49 OIMMZC 阅读(165) 评论(0) 推荐(0)
摘要: #import @interface ViewController : UIViewController{ UILabel *lable;}@end#import "ViewController.h"@interface ViewController ()@end@implementation V... 阅读全文
posted @ 2015-08-03 13:44 OIMMZC 阅读(168) 评论(0) 推荐(0)
摘要: #import "ViewController.h"@interface ViewController ()@end@implementation ViewController- (void)viewDidLoad {UIButton *button1=[UIButton buttonWithTyp... 阅读全文
posted @ 2015-08-03 13:39 OIMMZC 阅读(127) 评论(0) 推荐(0)
摘要: [super viewDidLoad]; // 实例化UILabel并指定其边框 UILabel *label = [[UILabel alloc]initWithFrame:CGRectMake(0.0, 80.0, 320.0, 300.0)]; // 设置label显示的文本 [lab... 阅读全文
posted @ 2015-08-03 08:17 OIMMZC 阅读(167) 评论(0) 推荐(0)
摘要: #include #include #include void test(){//汉字输出 printf("THIS IS TEST\n"); printf("My age is %d\n",26); printf("My age is %4d 发现没?26前面多了两个空格\n",26); ... 阅读全文
posted @ 2015-08-02 14:08 OIMMZC 阅读(1263) 评论(0) 推荐(0)
摘要: #include #define sum 3+4//宏定义是原封不动的使用used for test4#include //used for test8~9#include //used for test8~9void test(){//数组输出 //int a[5]={1,2,3,4,5}; ... 阅读全文
posted @ 2015-08-02 14:05 OIMMZC 阅读(1548) 评论(0) 推荐(0)
摘要: #include #include #include int main(int argc, const char * argv[]) { // insert code here... printf("Hello, World!\n"); int a,b,i; { sran... 阅读全文
posted @ 2015-08-02 14:02 OIMMZC 阅读(749) 评论(0) 推荐(0)