自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(13)
  • 资源 (1)
  • 收藏
  • 关注

转载 iPhone – Configuring the AVAudioSession and Output Audio to iPhone Speaker

http://eureka.ykyuen.info/2010/06/02/iphone-configuring-the-avaudiosession-and-output-audio-to-iphone-speaker/iPhone – Configuring the AVAudioSession and Output Audio to iPhone SpeakerPo

2012-07-24 11:07:09 7951

转载 Notification

appDelegate里面:-(void)application:(UIApplication *)application didReceiveRemoteNotification:(NSDictionary *)userInfo; 通过userinfo获取推送过来的东西;如果程序没启动的情况下通过push启动的话在- (BOOL)application:(UIApplication *)ap

2012-07-16 10:27:01 876

原创 objective-c 前后去空格,去行

NSString* str =@"   \n\n\n\n\n string\nstring \n \n \n   ";   NSString* str2 = [str stringByTrimmingCharactersInSet:[NSCharacterSetwhitespaceCharacterSet]]; //前后去空格   NSString* str3 = [str

2012-07-12 11:08:53 2370

原创 设置圆角

#import      icon.layer.masksToBounds = YES;        icon.layer.cornerRadius = 5.0;        icon.layer.borderWidth = 0.5;        icon.layer.borderColor = [[UIColor grayColor] CGColo

2012-07-12 07:39:50 409

转载 MySql字符串处理

对于针对字符串位置的操作,第一个位置被标记为1。1.ASCII(str)返回字符串str的最左面字符的ASCII代码值。如果str是空字符串,返回0。如果str是NULL,返回NULL。mysql> select ASCII('2'); -> 50mysql> select ASCII(2); -> 50mysql> select ASC

2012-07-10 16:55:52 548

原创 如何启用长按事件

UILongPressGestureRecognizer *longPressGR =         [[UILongPressGestureRecognizer alloc] initWithTarget:self                                                       action:@selector(handleLongPress

2012-07-09 17:42:29 524

转载 iOS延时执行的几种方法

1.最直接的方法performSelector:withObject:afterDelay:这种方法的缺点:每次要为延时写一个方法2.@implementation NSObject (PerformBlockAfterDelay)- (void)performBlock:(void (^)(void))block afterDel

2012-07-09 17:39:16 2049

转载 UIPanGestureRecognizer类——为view添加手势

#import UIKit/UIKit.h>@interface TestGestureRecognizerViewController : UIViewController {UIView *aView;}@property(nonatomic,retain)IBOutlet UIView *aView;@end////

2012-07-09 17:28:39 563

原创 SDWebImage回调

[cell.imageView setImageWithURL:[NSURL URLWithString:@"http://www.domain.com/path/to/image.jpg"]               placeholderImage:[UIImage imageNamed:@"placeholder.png"]                        succe

2012-07-09 09:13:13 916

原创 iPhone读取网页内容乱码解决方案

读取的中文网页编码集是gb2312,进行如下转换可正常显示中文:NSString *urlStr="your url";NSURL *url = [NSURL URLWithString:urlStr];NSData *data = [NSData dataWithContentsOfURL:url]; NSStringEncoding enc = CFStringConv

2012-07-07 06:31:06 5253

转载 iOS推送消息实现

向iPhone、iPod Touch发送消息都需要认证的,下面是以向iPhone推送消息:一、开通“Apple Push Notification Service”1.进入 Provisioning Protal2.选择App IDs3.选择要开通“Apple Push Notification service”的AppID,点击“Configure”链接4

2012-07-06 10:59:30 2293

原创 查看tomcat进程与Killtomcat

ps -aux | grep tomcatkill -9 tomcat-pid

2012-07-05 16:21:54 770

原创 判断用户设备是iPad还是iPhone的代码

#define isPad (UI_USER_INTERFACE_IDIOM() == UIUserInterfaceIdiomPad)

2012-07-03 13:23:16 524

Drupal分页代码

Drupal分页代码,模块开发中常能用到的。

2009-09-16

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除