- 浏览: 143271 次
-
最新评论
文章列表
UIView相关方法
- 博客分类:
- ios
[self.view insertSubview:girlView belowSubview:bottomView];//把girlView插入到bottomView后面
[self.view insertSubview:girlView aboveSubview:bottomView];//把girlView插入到bottomView前面
[self.v
NSString与int和float的相互转换
- 博客分类:
- ios
NSString *tempA = @"123";
NSString *tempB = @"456";
1,字符串拼接
NSString *newString = [NSString stringWithFormat:@"%@%@",tempA,tempB];
2,字符转int
int intString = [newString intValue];
3,int转字符
NSString *stringInt = [NSString stringWithFormat:@"%d" ...
UITableView中的部分设置
- 博客分类:
- ios
UITableView中的部分设置
UITableView 默认选中一个 cell
首先定义一个变量并初始化
iOS开发所有KeyboardType与图片对应展示
2012-10-23 09:54:14| 分类: IOS代码|举报|字号 订阅
不可变数组对象:
[array count] : 得到这个对象数组的长度。
[array objectAtIndex 0]: 传入数组脚标的id 得到数据对象。
[arrayWithObjects: ...] :向数组对象初始化赋值。这里可以写任意对象的指针,结尾必须使用nil。
NSArray 不可变数组 常用方法
+(id)arrayWithObjects:obj1,obj2,...nil
创建一个新的数组,obj1,obj
iPhone应用程序是由主函数main启动,它负责调用UIApplicationMain函数,该函数的形式如下所示: int UIApplicationMain ( int argc, char *argv[], NSString *principalClassName, NSString *delegateClassName ); 那么UIApplicationMain函数到底做了哪些事情呢? ...
关于IBOutlet
- 博客分类:
- ios
为了使用Interface Builder,我们需要在如XXViewController.h中增加IBOutlet标记。IBOutlet对于编译器而言只是一个标记,也就是说,编译器会忽略这个关键字。Interface Builder则是根据IBOutlet来寻找可以在Builder里操作的成员变量。
需要注意的是,任何一个被声明为IBOutlet并且在Interface Builder里被连接到一个UI组件的成员变量,会被额外retain一次。常见的情形如
IBOutlet UILabel *label;
这个label在Interface Builder里被连接到一个U ...
http://blog.csdn.net/tangbinqi_hua/article/details/6553298
可以通过以下几种方式来隐藏滚动条,而又不影响滚动效果
/* 隐藏x方向滚动条 */
.x-scroll-bar-x.active {
width: 0px;
}
/* 隐藏y方向滚动条 */
.x-scroll-bar-y.active {
width: 0px;
}
2.通过配置滚动条属性实现隐藏
scrollable: {
//注意横向竖向模式的配置,不能配错
direction: 'vertical',
//隐藏滚动条样式
indi ...
最近在项目中发现 sencha touch 中的 textarea 在手机上不显示滚动条,也不能滚动。
在浏览器中之所以能显示滚动条滚动,那是浏览器为 textarea 添加的滚动条。 但在手机中是不会显示滚动条的。 可能在以后的版本中会有所改进吧。
于是只能另想办法了,找了一个老外重写的可滑动的 textarea (无滚动条)
Ext.define('LeslieTest.view.TextArea',
{
extend : 'Ext.field.TextArea',
xtype : 'scrollTextArea',
initi ...
iphone 获取手机当前内存大小
- 博客分类:
- ios
+ (float)getFreeDiskspace{
float totalSpace;
float totalFreeSpace=0.f;
NSError *error = nil;
NSArray *paths = NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES);
NSDictionary *dictionary = [[NSFileManager defaultManager] attributesOfFileSystemForPath:[paths lastOb ...
用xcode5开发新的iOS游戏,发现一个坑爹的现象,虽然我已经在info.plist里面把Status bar is initially hidden设置成了YES,但在设备上一跑还是看到丑陋的status bar,中国联通....电池电量...
看到Deployment Info的设置里面有个Status Bar Style和一个Hide during application launch的勾选选项,默认就是选中的,这里试了几遍也没用。
然后又去appdelegate.m里面设置wantsFullScreenLayout,发现这个已经在iOS7里面deprecated了,坑 ...
Using Emoji in Web Apps
- 博客分类:
- ios
Using Emoji in Web Apps
By Cal Henderson, October 21st 2009.
If you haven't been locked in a small box for the past year, then you'll be familiar with the screenshot on the left - the Emoji keyboard on the iPhone. If you haven't unlocked yours yet, just go into the app store and search for 'emoj ...
Emoji for PHP
- 博客分类:
- php
Emoji for PHP
This library allows the handling and conversion of Emoji in PHP.
You can download a zipfile of the latest code, which contains a helpful readme file.
If you want to browse the code, it's in a public GitHub repo.
Example
<?php
include('emoji.php');
# browser sniffing tel ...
Emoji表情图标在iOS与PHP之间通信及MySQL存储
作者:neekey,发布于 2013年1月22日 ,已浏览5878次
3