08 2015 档案
摘要:素材有两个一个消息字典,一个自动回复匹配字典首先字典转模型,位置和数据都是模型里面弄好的 加了一个工具方法resizeImage来调整聊天界面然后来写自定义cell最后在控制器里面写逻辑//// UIImage+resizeImage.h// QQ聊天//// Created by Yagua...
阅读全文
摘要://// ViewController.m// 点餐系统//// Created by YaguangZhu on 15/8/27.// Copyright (c) 2015年 YaguangZhu. All rights reserved.//#import "ViewController...
阅读全文
摘要:消除重复计算的缺点,既是将有两个模型,一个数据模型,一个位置模型。位置模型里面包含了数据模型,将计算位置和数据都一起做了。Constant.h文件保存常量//// Constant.h// QQ聊天//// Created by YaguangZhu on 15/8/27.// Copyri...
阅读全文
摘要:1. 问题分析1> 图太大2> 字太小3> 钱数&购买人数不整齐4> 图片太紧,没有间隙,大小不一致......默认的表格样式通常不能满足正常的开发需要解决方法 —— 自定义Cell1> XIB(团购)2> 纯代码(微博)3> StoryBoardXIB的定义步骤------------------...
阅读全文
摘要:- (void)viewDidLoad { [super viewDidLoad]; _tableView = [[UITableView alloc] initWithFrame: CGRectMake(10, 90, 300, 200) style: UITable...
阅读全文
摘要:导入素材 plist 和图片status 封装数据 statuscell 构造cell模块 statusframe 来计算cell的高度 同时也可以把一部分 数据封装和 计算位置 写进去//// HMStatus.h// 新浪微博//// Created by YaguangZhu on 15...
阅读全文
摘要:#include #include #includeusing namespace std;bool equal(double num1,double num2){if((num1-num2>-0.000001)&&(num1-num2)<0.000001) return true; e...
阅读全文
摘要:主要是两点 一个是数据封装的改变 一个是方法的封装 还在下面加了一个 刷新功能 使用代理实现加载数据上面加了一个导航栏 作为广告 这两个都是自定义的xib//// HMTg.h// 02-团购//// Created by apple on 14-8-21.// Copyright (c) ...
阅读全文
摘要:首先 素材 照例是照片和plist文件 然后依旧是 字典转模型UI table View controller 的缺点是 不能灵活控制 图片的大小 和布局所以 新建一个xib文件,然后新建同名的类 xib继承此类 里面的控件可以拖线到类中//// Tg.h// 团购网//// Created ...
阅读全文
摘要:
阅读全文
摘要://// ViewController.m// 表格的修改//// Created by YaguangZhu on 15/8/16.// Copyright (c) 2015年 YaguangZhu. All rights reserved.//#import "ViewControlle...
阅读全文
摘要:资料:汽车图片 和plist文件:两个模型//// Car.h// 汽车品牌//// Created by YaguangZhu on 15/8/16.// Copyright (c) 2015年 YaguangZhu. All rights reserved.//#import @inte...
阅读全文
摘要:素材:图片库和一个英雄资料的plist文件:一个英雄数据封装的模块//// Hero.h// 多组表格//// Created by YaguangZhu on 15/8/13.// Copyright (c) 2015年 YaguangZhu. All rights reserved.//...
阅读全文
摘要:工作与梦想中的工作:给计算机专业学生的建议http://blog.jobbole.com/13782/我最近参加了 Big Ivy University (BIU)的招聘会,和大约50位计算机专业的本科生交谈过。他们希望能到我的公司 10gen 来实习或者正式工作。我确信他们之中有很聪明的,但是他们...
阅读全文
摘要:#include #include "stdlib.h"#define MAX(X,Y)(((X)>(Y))?(X):(Y))#define MAX(X,Y)(((X)<(Y))?(X):(Y))#define SQR(X) (X*X)#define DEBUGint main(){ int ...
阅读全文
摘要://// main.cpp// test//// Created by YaguangZhu on 15/6/25.// Copyright (c) 2015年 YaguangZhu. All rights reserved.//#include #include "stdlib.h"#de...
阅读全文
摘要:新建一个模块(类),类似于javabean//// HMStudent.h// 表格控件//// Created by YaguangZhu on 15/8/13.// Copyright (c) 2015年 YaguangZhu. All rights reserved.//#import...
阅读全文
摘要:监听控件的某些事件使用代理模式,是为了在程序直接"解耦"表格可以显示非常丰富的数据,为了达到这一效果,设置表格的"数据源"@required 必须实现的方法@optional 可选的实现方法->不强求实现->如果实现了能得到特殊的效果,如果不实现,也不影响程序的正常运行 能够增加控件的灵活度代理阶...
阅读全文
摘要:#include char getChar(int x,int y){ char c; unsigned int a = x; (a+y>10)?(c=1):(c=2); return c;}int main(){ char c1 = getChar(7, 4); ...
阅读全文
摘要://// ViewController.m// 图片轮播器//// Created by YaguangZhu on 15/8/12.// Copyright (c) 2015年 YaguangZhu. All rights reserved.//#import "ViewControlle...
阅读全文
摘要://// HMViewController.m// 08-倒计时//// Created by apple on 14-8-18.// Copyright (c) 2014年 itcast. All rights reserved.//#import "HMViewController.h"...
阅读全文
摘要:先确定代理和缩放比例self.scollView.delegate = self;self.scollView.maximumZoomScale=2.0;self.scollView.minimumZoomScale=0.2;头文件写上代理@interface ViewController ()//...
阅读全文
摘要:从5随机到7随机及其扩展【题目】 给定一个等概率随机产生1~5的随机函数rand1To5如下: public int rand1To5() {return (int) (Math.random() * 5) + 1; }除此之外不能使用任何额外的随机机制,请用rand1To5实现等概率随机产生1~7...
阅读全文
摘要:给定⼀一个字符串str和它的⼀一个最长回⽂文⼦子序列strLPS,返回字符串str在任意 位置添加最少字符后,整体都是回⽂文串的其中⼀一种结果。例如:str="AB1C2DE34F3GHJ21KL"; strLPS="1234321"; 返回:"ABLK1C2DEJHG3F4F3GHJED2C1KL...
阅读全文
摘要:左程云华中科技⼤大学本科,计算机科学与技术专业 芝加哥⼤大学硕⼠士,计算机科学专业 曾经在IBM、百度⼯工作刷题5年的算法热爱者 著有《程序员代码⾯面试指南》,即将出版发⾏行 QQ: 303233886 欢迎骚扰,我估计你们问的题我都刷过...笔试过程考试内容为基础中的基础,看好书即可拿下,因为...
阅读全文
摘要:update point set point.boundry=b_point.p_index from point,b_point where point.point_x_y=b_point.point_x_y;select count(*) from point,b_point where po...
阅读全文
摘要:#include int main(){ int i = 8; printf("%d\n",++i); printf("%d\n",--i); printf("%d\n",i++); printf("%d\n",i--); printf("%d\n",...
阅读全文
摘要:#include int value =0; void printvalue() { printf("value = %d/n",value); };int main(){ int value = 0; value =1; printf...
阅读全文
摘要:create table point( id int primary key auto_increment ,point_x_y text,boundry bool );一、sql语句1.操作数据库 (1)创建数据库 CREATE DATABASE [IF NOT EXISTS]...
阅读全文
摘要:很简单 > 0807.txt 就可以了
阅读全文
摘要://// HMViewController.m// 03-查看大图//// Created by apple on 14-8-18.// Copyright (c) 2014年 itcast. All rights reserved.//#import "HMViewController.h...
阅读全文
摘要://// HMViewController.m// 02-用户登录//// Created by apple on 14-8-18.// Copyright (c) 2014年 itcast. All rights reserved.//#import "HMViewController.h...
阅读全文
摘要://// HMViewController.m// 01-UIKit复习//// Created by apple on 14-8-18.// Copyright (c) 2014年 itcast. All rights reserved.//#import "HMViewControlle...
阅读全文
摘要:代理的用处 监听那些不能通过addtarget监听的方法主要用来负责制在两个对象之间,发生某些事情时,来传递消息和数据代理实现的步骤1. 成为(子)控件的代理,父亲(控制器)成为儿子(文本框)的代理2.遵守协议--》利用智能提示,快速编写代码3.实现协议方法
阅读全文
摘要:源代码 :https://github.com/zhuyaguang/iosCode
阅读全文
摘要:ViewController.m//改变状态栏的颜色-(UIStatusBarStyle)preferredStatusBarStyle{ return UIStatusBarStyleLightContent;}//隐藏状态栏-(BOOL)prefersStatusBarHidden{ ...
阅读全文
摘要://// CZAppView.m// 应用管理//// Created by YaguangZhu on 15/8/1.// Copyright (c) 2015年 YaguangZhu. All rights reserved.//#import "CZAppView.h"#import ...
阅读全文
摘要://// app.h// 应用管理//// Created by YaguangZhu on 15/7/31.// Copyright (c) 2015年 YaguangZhu. All rights reserved.//#import @interface app : NSObject@...
阅读全文

浙公网安备 33010602011771号