- 浏览: 297211 次
- 性别:
- 来自: 上海
最新评论
-
yahier:
没帮助。。。。。。
利用JS获取经纬度,定位html地图 -
mountainol:
[img][img][img][img][url][flash ...
iPhone面试题解答,真机调试 -
qww_friend:
很不错的一个案例,试了下,没有报错,就是我想要的
Poi读取Excel2007 -
zcw_java:
peng051410 写道啥时候能更新呢?求解! 好久没弄过了 ...
Spring Security-session过期跳出<iframe> -
peng051410:
啥时候能更新呢?求解!
Spring Security-session过期跳出<iframe>
文章列表
UITapGestureRecognizer *singleTap = [[UITapGestureRecognizer alloc] initWithTarget:self action:@selector(handelSingleTap:)];
[self.m_tableView addGestureRecognizer:singleTap];
[singleTap release];
[singleTap setNumberOfTouchesRequired:1];//触摸点个数
[singleTap setNumberOfTapsRequire ...
- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath
{
static NSString *cellIdetifier = @"blogCellIdentifier";
UITableViewCell *cell = [m_tableViewDownList dequeueReusableCellWithIdentifier:cellIdetifier];
if(cell==nil)
...
initWithNibName初始化nib文件,加载结束调用viewDidLoad
viewDidLoad在初始化nib文件后的初始化工作,可以用于初始化ui。。。
后期补全
代码粘的多了点,看着清楚一点
SetupAccountViewController.h文件,声明m_comBoxView,线程不安全,retain(self调用引用+1)
#import <UIKit/UIKit.h>
#import "ComBoxView.h"
@interface SetupAccountViewController : UIViewController
{
ComBoxView *m_comBoxView;
}
@property (retain,nonatomic) ComBoxView *m_comBoxVi ...
COCOS2D对OpenGL进行得封装
今天一个菜鸟说:后面触发一个事件之后 又要播放一次
如果不删除之前的 会出现重叠的效果代码如下:
播放代码
-(void) TrafficShipAnimation
{
[[CCSpriteFrameCache sharedSpriteFrameCache] addSpriteFramesWithFile:@"trafficshipwin.plist"];
CCSpriteBatchNode *spritebn = [CCSpriteBatchNode batchNodeWithFile:@" ...
static MyGizmoClass *sharedGizmoManager = nil;
+ (MyGizmoClass*)sharedManager
{
@synchronized(self) {
if (sharedGizmoManager == nil) {
[[self alloc] init]; // assignment not done here
}
}
return sharedGizmoMa ...
NSDate和NSString的转换
- 博客分类:
- OC进阶
用于uidate,picker。。
//将string转换成data类型
NSData *dataXML = [m_strCurParser dataUsingEncoding:NSASCIIStringEncoding];
NSXMLParser *xmlParser = [[NSXMLParser alloc] initWithData:dataXML];
+(NSDate*) convertDateFromString:(NSString*)uiDate
{
NSDateFormatter *formatter = [[NSDateFormatter alloc ...
UITableView取消选中颜色、常用操作
- 博客分类:
- OC进阶
使用空白view取代cell
- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath
{
//取消选中颜色
UIView *backView = [[UIView alloc] initWithFrame:cell.frame];
cell.selectedBackgroundView = backView;
cell.selectedBackgroundView.backgroundColor = [UIColor clea ...
IOS 开发,调用打电话,发短信,打开网址
- 博客分类:
- OC进阶
1、调用 自带mail
[[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"mailto://admin@hzlzh.com"]];
2、调用 电话phone
[[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"tel://8008808888"]];
3、调用 SMS
[[UIApplication sharedApplication] openURL:[NSURL URLW ...
ios电子
http://www.itpub.net/forum.php?mod=forumdisplay&fid=61&page=1
http://www.doc88.com/p-298947886199.html
http://www.docin.com/p-306361271.html
linux日志
tail -200f /u02/logs/dolphin_cms_logs.log
tail -200f /u02/tomcat-dolphin-ui/logs/catalina.out
ios-pdf优秀案例(外滩画报)
http://www.mediapad.cn ...
ios NavBar+TarBar技巧
- 博客分类:
- iPhone开发
NavBar+TarBar
iphone开发 NavBar+TarBar
1 改变NavBar颜色:选中Navigation Bar 的Tint属性。选中颜色。
2 隐藏“back”按钮: self.navigationItem.hidesBackButton = YES;
3 隐藏"NavBar" : self.navigationController.navigationBarHidden = YES;
4 可以不用MainWindow.xib创建的Navigation。在每个view上自定义。
需要把每个控制页都加上以下代码来隐藏nav:
-(voi ...
当 Web 应用集成 Spring 容器后,代表 Spring 容器的WebApplicationContext对象将以
WebApplicationContext.ROOT_WEB_APPLICATION_CONTEXT_ATTRIBUTE 为键存放在ServletContext的属性列表中。您当然可以直接通过以下语句获取 WebApplicationContext:
WebApplicationContext wac = (WebApplicationContext)servletContext.
getAttribute(WebApplicationContext.ROOT_WEB ...
中国的iphone网络是区分2G和3G,要想获取当前的网络状态一直没有一个好的方法,网上给的例子也不尽让人满意最近闲来无事,仔细的研究Apple提供的
Reachability *reach = [Reachability reachabilityWithHostName:@"www.apple.com"];
NSLog(@"%d", [reach currentReachabilityStatus]);
return;
在currentReachabilityStatus函数中,我们注意到这样的输出
static void Pri ...
JAVA实现RSA加密过程
- 博客分类:
- Java
用JAVA实现RSA加密过程,有以下几个步骤:
1、甲方构建密钥对(公钥和私钥,公钥给对方,私钥留给自己)
2、甲方使用私钥加密数据,然后用私钥对加密后的数据签名,并把这些发送给乙方;乙方使用公钥、签名来验证待解密数据是否有效,如果有效使用公钥对数据解密。
3、乙方使用公钥加密数据,向甲方发送经过加密后的数据;甲方获得加密数据,通过私钥解密。
package com.rsa.core;
import java.security.Key;
import java.security.KeyFactory;
import java.security.Key ...
配置最显眼的外观变化要数屏幕,由之前的3.5英寸升级至4.0英寸,分辨率为1136 * 640像素,326ppi。屏幕上现在可以放置5排图标。
iPhone 5厚度为7.6mm,重量为112g,比4S薄了18%、轻了20%。外壳采用全铝材质以及高强度玻璃,之前的iPhone 4和iPhone 4S外壳为加强型玻璃。
新一代的iPhone性能更加强劲,搭载A6处理器,CPU性能和显卡性能均为A5两倍,应用的加载和运行速度也更快。此外,支持4G LTE网络。
除此之外我们更关心怎么兼容iPhone3/3GS/4/4S/5屏幕~大家有什么好的办法可以做到兼容?
3 --- 480 x ...