2013年7月18日

实现不规则形状的按钮

摘要: 用到了四个文件:UIImage+ColorAtPixel.hUIImage+ColorAtPixel.mOBShapedButton.hOBShapedButton.m作者:Ole Begemann 1 /* 2 Copyright (c) 2009 Ole Begemann 3 4 Permission is hereby granted, free of charge, to any person obtaining a copy 5 of this software and associated documentation files (the "Software") 阅读全文

posted @ 2013-07-18 16:46 许木木 阅读(642) 评论(0) 推荐(0) 编辑

如何创建一个渐变背景色的按钮

摘要: 通过NVUIGradientButton 类来实现,作者:Nicolas Verinaud 1 // 2 // NVUIGradientButton.h 3 // 4 // Created by Nicolas Verinaud on 20/06/12. 5 // Copyright (c) 2012 nverinaud.com. All rights reserved. 6 // 7 8 #import 9 10 typedef enum {11 NVUIGradientButtonStyleDefault = 1,12 NVUIGradientButtonStyl... 阅读全文

posted @ 2013-07-18 15:16 许木木 阅读(559) 评论(0) 推荐(0) 编辑

2013年7月16日

NSString 使用

摘要: 1.判断是否为空 if (0 == [strObj length]) { //strObj is a empty string }2.判断是否包含了子字符串if ([strObj rangeofString:@"search"].lenght == 0){ //strObj not contain sub string "search" } 阅读全文

posted @ 2013-07-16 10:31 许木木 阅读(100) 评论(0) 推荐(0) 编辑

2013年7月15日

二维码相关

摘要: 一.二维码Zbar库的引入:1.把ZBarSDK 文件夹添加到工程中;2.引入需要的库AVFoundation.framework(weak)CoreMedia.framework(weak)CoreVideo.framework(weak)QuartzCore.frameworklibiconv.dylib3.添加相关头文件 #import "ZBarSDK.h"二.问题:1.ZBar对于包含信息量比较大的二维码,无法识别,如下图:原因:我把扫瞄的区域设置得太小导致了该问题,本质原因是不是因为分辨率不够就不知道,把扫瞄区域调大就可以了。 self.readerView = 阅读全文

posted @ 2013-07-15 15:44 许木木 阅读(192) 评论(0) 推荐(0) 编辑

2013年7月11日

iOS 网络状态

摘要: Reachability.h 1 /* 2 3 File: Reachability.h 4 Abstract: Basic demonstration of how to use the SystemConfiguration Reachablity APIs. 5 6 Version: 2.2 7 8 Disclaimer: IMPORTANT: This Apple software is supplied to you by Apple Inc. 9 ("Apple") in consideration of your agreement to the foll.. 阅读全文

posted @ 2013-07-11 13:19 许木木 阅读(207) 评论(0) 推荐(0) 编辑

2013年7月10日

SDWebImage 的安装(转自官方文档)

摘要: InstallationThere are two ways to use this in your project: copy all the files into your project, or import the project as a static library.Add the SDWebImage project to your projectDownload and unzip the last version of the framework from thedownload pageRight-click on the project navigator and sel 阅读全文

posted @ 2013-07-10 11:45 许木木 阅读(547) 评论(0) 推荐(0) 编辑

2013年6月28日

UILabel 常用属性(转)

摘要: //创建uilabelUILabel *label1 = [[UILabel alloc] initWithFrame:CGRectMake(20, 40, 280, 80)];//设置背景色label1.backgroundColor = [UIColor grayColor];//设置taglabel1.tag = 91;//设置标签文本label1.text = @"Hello world!";//设置标签文本字体和字体大小label1.font = [UIFont fontWithName:@"Arial" size:30];//设置文本对其方式 阅读全文

posted @ 2013-06-28 16:59 许木木 阅读(272) 评论(0) 推荐(0) 编辑

2013年6月27日

ios 问题集

摘要: 1.用UIWebView 加载一个不存在的网址(https://developer.apple),我在加载失败的事件中,调用 [self.browser stopLoading] 但是,iphone系统上标示网络的小菊花还老在转?2.用选项卡,导航栏做一个主要框架,如何只让其中的某些view(对应的controller的title为selfbrowser browser)支持旋转? 1 //#pragma mark - Rotation UITabBarController category 2 3 @implementation UITabBarController (Rotate) 4 . 阅读全文

posted @ 2013-06-27 15:36 许木木 阅读(383) 评论(0) 推荐(0) 编辑

2013年5月27日

ios学习资料

摘要: <<马上着手开发 iOS 应用程序>>https://developer.apple.com/library/ios/#referencelibrary/GettingStarted/RoadMapiOSCh/chapters/Introduction.html 阅读全文

posted @ 2013-05-27 10:03 许木木 阅读(116) 评论(0) 推荐(0) 编辑

2013年5月25日

基于http live streaming, 使用vlc + mediastreamsegmenter + apache 实现iOS视频直播

摘要: 刚学ios一个多星期,这里基本没怎么提理论,需要的参考下其它资料HTTPLiveStreaming(缩写是HLS)是一个由苹果公司提出的基于HTTP的流媒体网络传输协议。是苹果公司QuickTimeX和iPhone软件系统的一部分。它的工作原理是把整个流分成一个个小的基于HTTP的文件来下载,每次只下载一些。当媒体流正在播放时,客户端可以选择从许多不同的备用源中以不同的速率下载同样的资源,允许流媒体会话适应不同的数据速率。在开始一个流媒体会话时,客户端会下载一个包含元数据的extendedM3U(m3u8)playlist文件,用于寻找可用的媒体流。HLS只请求基本的HTTP报文,与实时传输协 阅读全文

posted @ 2013-05-25 17:30 许木木 阅读(2443) 评论(1) 推荐(0) 编辑

导航