This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
black edge text ios | |
http://stackoverflow.com/questions/1103148/how-do-i-make-uilabel-display-outlined-text | |
http://stackoverflow.com/questions/8224335/crop-uiimage-as-screen-size | |
截图 | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
https://mygod-go-home.googlecode.com/svn/trunk/ | |
http://bbs.csdn.net/topics/390269242?page=1#post-392825144 这里有下载的 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-(void)paste:(id)sender | |
{ | |
UIPasteboard *board = [UIPasteboard generalPasteboard]; | |
NSArray *arr = board.strings; | |
NSLog(@"string:%@",[board.strings objectAtIndex:0]); | |
} | |
- (void)viewDidLoad | |
{ | |
[super viewDidLoad]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-(NSString *)checkVerifyCode:(NSString *)code | |
{ | |
code = [code stringByTrimmingCharactersInSet:[NSCharacterSet whitespaceAndNewlineCharacterSet]]; | |
if([code isEqualToString:@""]) | |
{ | |
return @"验证码不能为空"; | |
} | |
NSString *verifyCodeRegex = [NSString stringWithFormat:@"([a-z,A-Z,0-9]{6})"]; | |
NSPredicate *verifyCodeTest = [NSPredicate predicateWithFormat:@"SELF MATCHES %@", verifyCodeRegex]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#import <QuartzCore/QuartzCore.h> | |
@interface ViewController () | |
@end | |
@implementation ViewController | |
-(void)go:(id)sender | |
{ | |
NSLog(@"GGGG"); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
NSURL *url = [NSURL URLWithString:@"http://maps.google.com/maps?q=pizza"]; [[UIApplication sharedApplication]openURL:url]; | |
NSString *url = @"mailto:846745250@qq.com?subject=User Feedback!&body=fuck you"; | |
url = [url stringByAddingPercentEscapesUsingEncoding:NSUTF8StringEncoding]; | |
[[UIApplication sharedApplication] openURL:[NSURL URLWithString:url]]; | |
[[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"http://itunesconnect.apple.com"]]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
http://cc.cocimg.com/cms/uploads/allimg/100707/8_100707152949_1.jpg | |
http://www.cocoachina.com/newbie/basic/2010/0707/1821.html |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
int buf = 0x12121212; | |
NSData *data=[[NSData alloc]initWithBytes:&buf length:4]; | |
NSString *string=[[NSString alloc]initWithString:@"dsfasdf"]; | |
NSArray *array=[[NSArray alloc]initWithObjects:@"first",@"second",[NSNumber numberWithInt:123], nil]; | |
NSMutableArray *array2=[[NSMutableArray alloc]initWithObjects:@"first",@"second",[NSNumber numberWithInt:123], nil]; | |
[array2 addObject:array]; | |
[array2 addObject:data]; | |
NSDictionary *dictionary = [[NSDictionary alloc] initWithObjectsAndKeys:@"abc",@"first",@"def",@"second" , nil]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
http://www.cocoachina.com/newbie/tutorial/2011/1025/3420.html | |
http://blog.csdn.net/favormm/article/details/6858330 | |
第一种方法是用系统api的方式获取,如下 | |
#include <stdio.h> | |
#include <stdlib.h> | |
#include <string.h> | |
#include <unistd.h> | |
#include <sys/ioctl.h> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// ViewController.m | |
// testAsihttpModel | |
// | |
// Created by wgdadmin on 12-9-8. | |
// Copyright (c) 2012年 wgdadmin. All rights reserved. | |
// | |
#import "ViewController.h" | |
#import "ASIHTTPRequest.h" |