类似于QQ的那种折叠效果。只刷新点击的折叠行。不加载所有数据源。 测试环境Xcode4.3.3+SDK5.1兼容ios6 // // MyTableViewController.m…
//在一个函数里面(初始化等)里面添加要识别触摸事件的范围 infoView=[[UIView alloc] initWithFrame:CGRectMake(20, 100,22…
NSData *condata = responseObject; //设置编码格式,这种编码格式可以正常读取中文 NSStringEncoding enc = CFStringC…
UIWebView加载Loading…两种方法 第一种方法:使用UIView and UIActivityIndicatorView //创建UIWebView Web…
CGContextRef context = UIGraphicsGetCurrentContext(); [UIView beginAnimations:nil context:…
//ASIFormDataRequest方式 POST上传图片 -(NSDictionary *)addPicWithDictionary:(NSDictionary *)suge…
使用前 需引入QuartzCore.framework, 并在相关文件中加入 #import "QuartzCore/QuartzCore.h" 定义 shak…
//Import the MessageUI Framework into your project and //#import the header file into the …
- (UIImage*)scaleFromImage:(UIImage*)image scaledToSize:(CGSize)newSize { CGSize imageSize…
UIColor *color = [UIColor colorWithRed:0.95 green:0.95 blue:0.95 alpha:0]; [aImage setBack…
当前视图上有多个uitextfield时,来隐藏键盘, 先遍历视图的所有子视图来 如果是UITextField就将其设为非第一响应 当然,如果要隐藏子视图上的UITextField…
SCNetworkReachabilityFlags flags; BOOL receivedFlags; SCNetworkReachabilityRef reachabilit…