上一页 1 ··· 28 29 30 31 32 33 34 35 36 ··· 39 下一页

2013年9月4日

ios 自定义NavgationBar的按钮

摘要: UIImage *btnimage = [UIImage imageNamed:@"about.png"];UIButton *btn = [[UIButton alloc] initWithFrame:self.navigationController.navigationBar.frame];btn.showsTouchWhenHighlighted = YES;[btn addTarget:self action:@selector(infoAction:) forControlEvents:UIControlEventTouchUpInside];[btn setI 阅读全文

posted @ 2013-09-04 16:43 Hai_阔天空 阅读(495) 评论(0) 推荐(0)

c# Graphics.DrawImage 方法

摘要: http://msdn.microsoft.com/zh-cn/library/system.drawing.graphics.drawimage.aspx 阅读全文

posted @ 2013-09-04 15:44 Hai_阔天空 阅读(1651) 评论(0) 推荐(0)

c# 执行 CreateHandle() 时无法调用值 Dispose()

摘要: 在多线程C#开发中,遇到错误 执行 CreateHandle() 时无法调用值 Dispose()。,这个错误是在关闭窗体的时候出来的。 原因是因为窗体还存在CreateHandle()事件,所以还不能回收垃圾。 当前窗体的句柄Handle还没有创建完成所以不能直接进行关闭操作。解决方法:1.protected override void OnVisibleChanged(EventArgs e){ base.OnVisibleChanged(e); if ( !IsHandleCreated) { this.Close(); }}2.IsB... 阅读全文

posted @ 2013-09-04 15:38 Hai_阔天空 阅读(5778) 评论(0) 推荐(0)

2013年9月2日

c# Use NAudio Library to Convert MP3 audio into WAV audio(将Mp3格式转换成Wav格式)

摘要: Have you been in need of converting mp3 audios to wav audios? If so, the skill in this article provides you a chance to manage the mp3-to-wav conversion by yourself.The wave audio files are useful because they retain the first-generation archived file with high quality and simple file structures. Bu 阅读全文

posted @ 2013-09-02 14:24 Hai_阔天空 阅读(8330) 评论(0) 推荐(0)

2013年8月29日

c# WinForm 边框阴影窗体

摘要: using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using System.Linq;using System.Text;using System.Windows.Forms;using System.Runtime.InteropServices;namespace testWinForm{ public partial class Form2 : Form { public Form2() ... 阅读全文

posted @ 2013-08-29 09:40 Hai_阔天空 阅读(1073) 评论(0) 推荐(0)

2013年8月27日

ios UIImage图片拉伸 resizableImageWithCapInsets:

摘要: 常见的按钮添加和背景设置如下:UIButton *button = [[UIButton alloc] initWithFrame:CGRectMake(80, 130, 160, 44)];[button setTitle:@”Test Button” forState:UIControlStateNormal];// Image with without cap insetsUIImage *buttonImage = [UIImage imageNamed:@”blueButton”];[button addTarget:self action:@selector(buttonPress 阅读全文

posted @ 2013-08-27 16:42 Hai_阔天空 阅读(2136) 评论(0) 推荐(0)

ios 图片拉伸不变形的方法

摘要: 如果一个椭圆图片,原图大小为30*30,而我们让它显示100*30,那么这个图片就会被拉伸,而且效果很难看。用下边的方法可以创建一个局部不被拉伸的图片。UIImage * buttonBg = [[UIImage imageNamed:@"btn_normal.png"]stretchableImageWithLeftCapWidth:10topCapHeight:0];方法说明:- (UIImage *)stretchableImageWithLeftCapWidth:(NSInteger)leftCapWidth topCapHeight:(NSInteger)topC 阅读全文

posted @ 2013-08-27 16:21 Hai_阔天空 阅读(1034) 评论(0) 推荐(0)

ios 的ASIHTTPRequest学习

摘要: 发起一个同步请求同步意为着线程阻塞,在主线程中使用此方法会使应用Hang住而不响应任何用户事件。所以,在应用程序设计时,大多被用在专门的子线程增加用户体验,或用异步请求代替(下面会讲到)。- (IBAction)grabURL:(id)sender{ NSURL *url = [NSURL URLWithString:@" http://allseeing-i.com"]; ASIHTTPRequest *request = [ASIHTTPRequest requestWithURL:url]; [request startSynchronous]; NSError *e 阅读全文

posted @ 2013-08-27 16:00 Hai_阔天空 阅读(231) 评论(0) 推荐(0)

ios 使用ASIHTTPRequest来检查版本更新

摘要: 1 - (void) alertWithTitle: (NSString *)_title_ msg:(NSString *)msg delegate:(id)_delegate cancelButtonTitle:(NSString*)_cancelTitle otherButtonTitles:(NSString*)_otherTitles{ 2 UIAlertView *alert = [[UIAlertView alloc] initWithTitle:_title_ 3 ... 阅读全文

posted @ 2013-08-27 15:50 Hai_阔天空 阅读(346) 评论(0) 推荐(0)

ios ASIHTTPRequest类库简介和使用说明

摘要: 官方网站: http://allseeing-i.com/ASIHTTPRequest/ 。可以从上面下载到最新源码,以及获取到相关的资料。使用iOS SDK中的HTTP网络请求API,相当的复杂,调用很繁琐,ASIHTTPRequest就是一个对CFNetwork API进行了封装,并且使用起来非常简单的一套API,用Objective-C编写,可以很好的应用在Mac OS X系统和iOS平台的应用程序中。ASIHTTPRequest适用于基本的HTTP请求,和基于REST的服务之间的交互。ASIHTTPRequest功能很强大,主要特色如下:l 通过简单的接口,即可完成向服务端提交数据和从 阅读全文

posted @ 2013-08-27 15:09 Hai_阔天空 阅读(256) 评论(0) 推荐(0)

上一页 1 ··· 28 29 30 31 32 33 34 35 36 ··· 39 下一页

导航