上一页 1 ··· 25 26 27 28 29 30 31 32 33 ··· 39 下一页

2013年12月11日

ios mrc & arc 并用

摘要: 如果在arc工程中倒入mrc文件就会提示出错。解决办法如下:在targets的build phases选项下Compile Sources下选择要使用arc编译的文件,双击它,输入-fno-objc-arc即可.ARC与非ARC在一个项目中同时使用,1,选择项目中的Targets,选中你所要操作的Target,2,选Build Phases,在其中Complie Sources中选择需要ARC的文件双击,并在输入框中输入:-fobjc-arc,如果不要ARC则输入:-fno-objc-arc 阅读全文

posted @ 2013-12-11 11:58 Hai_阔天空 阅读(297) 评论(0) 推荐(0)

2013年12月3日

在 iOS 应用中直接跳转到 AppStore 的方法

摘要: 在 iOS 应用中直接跳转到 AppStore 的方法找到应用程序的描述链接,比如:http://itunes.apple.com/gb/app/yi-dong-cai-bian/id391945719?mt=8然后将 http:// 替换为itms:// 或者itms-apps://:itms://itunes.apple.com/gb/app/yi-dong-cai-bian/id391945719?mt=8itms-apps:// itunes.apple.com/gb/app/yi-dong-cai-bian/id391945719?mt=8然后打开这个链接地址:[[UIApplica 阅读全文

posted @ 2013-12-03 18:06 Hai_阔天空 阅读(401) 评论(0) 推荐(0)

ios 让两个tableView同时处于选中状态

摘要: 1 - (void)tableView:(UITableView *)tableView didHighlightRowAtIndexPath:(NSIndexPath *)indexPath 2 { 3 [_listTableView selectRowAtIndexPath:indexPath animated:NO scrollPosition:UITableViewScrollPositionNone]; 4 [_titleTableView selectRowAtIndexPath:indexPath animated:NO scrollPosition:UITab... 阅读全文

posted @ 2013-12-03 15:05 Hai_阔天空 阅读(382) 评论(0) 推荐(0)

2013年11月26日

ios开发-获取手机相关信息

摘要: 今天在做客户端的时候,里面有个意见反馈功能。调用系统带的邮件功能,发送邮件到指定邮箱。然后我就想,应该在邮件正文部分添加手机相关内容,比如型号,版本,应用程序的版本等等,这样不仅使用者方便,开发者也能更好的分析。于是,学习了相关的知识,在这里与大家分享。iOS的APP的应用开发的过程中,有时为了bug跟踪或者获取用反馈的需要自动收集用户设备、系统信息、应用信息等等,这些信息方便开发者诊断问题,当然这些信息是用户的非隐私信息,是通过开发api可以获取到的。那么通过那些api可以获取这些信息呢,iOS的SDK中提供了UIDevice,NSBundle,NSLocale。在次之前,补充个内容。UID 阅读全文

posted @ 2013-11-26 15:56 Hai_阔天空 阅读(493) 评论(0) 推荐(0)

2013年11月21日

ios 如何改变UISegmentedControl文本的字体大小?

摘要: UIFont *Boldfont = [UIFont boldSystemFontOfSize:16.0f]; NSDictionary *attributes = [NSDictionary dictionaryWithObject:Boldfont forKey:UITextAttributeFont]; [segment setTitleTextAttributes:attributes forState:UIControlStateNormal]; 阅读全文

posted @ 2013-11-21 10:31 Hai_阔天空 阅读(599) 评论(0) 推荐(1)

2013年11月19日

ios 开发证书制作

摘要: 1.首先打开Mac中的keychain选择钥匙串访问-证书助手-创建证书-导出CertificateSigningRequest.CertSigningRequest.CertSigningRequest文件2.进入开发者中3.4.56.生成完证书之后,点击下载(Download)即可7.之后同样创建Provisioning Profiles可以选择开发人员,以及需要添加的设备。生成之后Download,双击添加到MAC即可。 阅读全文

posted @ 2013-11-19 16:17 Hai_阔天空 阅读(235) 评论(0) 推荐(0)

2013年11月14日

iOS UILable 高度自适

摘要: #import "ViewController.h"#define FontSize 20@interface ViewController ()@end@implementation ViewController- (void)viewDidLoad{ [super viewDidLoad]; // Do any additional setup after loading the view, typically from a nib. NSString *str = @"相见欢李煜 \n春花秋月何时了,\n往事知多少。\n小楼昨夜又东风,\n古国不堪回首月明中 阅读全文

posted @ 2013-11-14 09:01 Hai_阔天空 阅读(264) 评论(0) 推荐(0)

2013年11月8日

asp 中创建日志打印文件夹

摘要: string FilePath = HttpRuntime.BinDirectory.ToString(); string FileName = FilePath + "日志" + "\\" + System.DateTime.Now.ToString("yyyyMMdd") + ".txt"; //判断有无当天txt文档,没有则创建 if (!File.Exists(FileName)) { //... 阅读全文

posted @ 2013-11-08 11:46 Hai_阔天空 阅读(244) 评论(0) 推荐(0)

2013年11月4日

ios iphone、ipad启动画面尺寸

摘要: 以下是iphone、ipad启动画面的尺寸iphone4(纵):320 x 480iphone4 Retina(纵):640 x 960iphone5(纵):320 x 568iphone5 Retina(纵):640 x 1136ipad(横):1024 x 748ipad Retina(横):2048 x 1496ipad(纵):768 x 1004ipad Retina(纵):1536 x 2008 阅读全文

posted @ 2013-11-04 16:41 Hai_阔天空 阅读(609) 评论(0) 推荐(0)

2013年10月25日

ios 更改UITableview中Section的字体颜色

摘要: -(UIView *)tableView:(UITableView *)tableView viewForHeaderInSection:(NSInteger)section{ UILabel *customLabel = [[UILabel alloc] init]; customLabel.text = [self tableView:tableView titleForHeaderInSection:section]; return customLabel;} 阅读全文

posted @ 2013-10-25 11:53 Hai_阔天空 阅读(418) 评论(0) 推荐(0)

上一页 1 ··· 25 26 27 28 29 30 31 32 33 ··· 39 下一页

导航