摘要:
iPhone上实现Default.png动画iPhone上实现Default.png动画 原理: 添加一张和Default.png一样的图片,对这个图片进行动画,从而实现Default动画的渐变消失的效果。 操作: 在- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOpti*****:(NSDictionary *)launchOpti*****中添加如下代码: // Make this interesting. UIImageView *s... 阅读全文
摘要:
在程序中如何把两张图片合成为一张图片- (UIImage *)addImage:(UIImage *)image1 toImage:(UIImage *)image2 {UIGraphicsBeginImageContext(image1.size);// Draw image1[image1 drawInRect:CGRectMake(0, 0, image1.size.width, image1.size.height)];// Draw image2[image2 drawInRect:CGRectMake(0, 0, image2.size.width, image2.size.hei 阅读全文
摘要:
iphone网络post连接的两种处理方式(同步和异步) 第一种: 直接返回方式。-(void)UpadaPost:(NSString *)strcontext URL:(NSString *)urlstr{NSLog(urlstr);NSLog(strcontext);assert(strcontext != NULL);assert(urlstr != NULL);NSData *postData = [strcontext dataUsingEncoding:NSASCIIStringEncoding allowLossyConversion:YES]; NSString *post.. 阅读全文