天气地图(Weather Map)是结合地图和天气的 App,适合喜欢旅行的人,能一眼看到周边的天气状况。
LGRadioButtonsView 是 radio button 在 iOS 的实现。 Installation With source code Download repository
Deep Linking 其实 deep linking 并不是一个新名词,在 web 开发领域,区别于指向首页的链接( http://tech.glowing.com/ ),deep linking
基本功 iOS在诞生之初为了最大程度的保证用户体验,做了一些高瞻远瞩且影响深远的设计。APNs(Apple Push Notification service)就是其中一项。 早期iOS设备的内
1.普通界面 /** *截图功能 */ -(void)screenShot{ UIGraphicsBeginImageContextWithOptions(CGSizeMake(640, 960), YES, 0); //设置截屏大小 [[self.view layer] renderInContext:UIGraphicsGetCurrentContext()]; UIImage *viewIm
使用block 使用前需引入QuartzCore.framework, 并在相关文件中加入 #import"QuartzCore/QuartzCore.h" 定义 shakeFeedbackOverlay为UIImageView 设置 self.shakeFeedbackOverlay.alpha= 0.0; self.shakeFeedbackOverlay.layer.cornerRadius
//textField.text 为你要获取的值 NSString *P_textfield = [textField.text stringByTrimmingCharactersInSet:[NSCharacterSet whitespaceCharacterSet]]; ////////miller 手机 推荐验证 /** * 手机号码 * 移动:134[0-8],135,136,137,1
UIWebView的使用方法 //1.创建、设置代理 UIWebView *webView=[[UIWebView alloc] initWithFrame:CGRectMake(0, 20, 320, 300)]; webView.delegate = self; //2.加载网页 NSURL *url=[NSURL URLWithString:@"http://www.google.com.h
//第一种打电话的方式 - (IBAction)firstCall:(id)sender { NSString *phone = @"18749627117"; if (phone != nil) { [[UIApplication sharedApplication] openURL:[NSURL URLWithString:[NSString stringWithFormat:@"tel:%@
1.新建一个single view工程,导入ASIHttpRequest库,导入MobileCoreServices、CFNetwork、SystemConfiguration和libz1.2.5.dylib四个系统库 2.随便导入一张图片,比如haoyou.png 3.ViewController.h #import <UIKit/UIKit.h> #import "ASIHTTPRequest
- (IBAction)rotate:(id)sender { [UIView beginAnimations:@"View Filp" context:nil]; [UIView setAnimationDelay:0.25]; [UIView setAnimationCurve:UIViewAnimationCurveLinear]; [UIView setAnimationTransitio
#import <Foundation/Foundation.h> #import <AppKit/AppKit.h> int main(int argc, const char * argv[]) { @autoreleasepool { if (argc < 2) { return ; } NSString *inputFile = [NSString stringWithCString:ar
IOS单元测试 根据目前主流单元测试框架:本公司IOS小组是使用GHUnit 和 OCMock 框架 XCode 内置了 OCUnit 单元测试框架,但目前最好用的测试框架应该是 GHUnit。通过
。 1983年,Objective-C诞生了。 1985年,Next公司使用Objective-C开发出了nextstep操作系统 1997年,apple收购了Next公司,在nextstep基础上,开始设计Mac
MaterialCardView 可以简单快捷地创建Material设计卡片。
1.创建程序时勾选coredata 2.在core.xcdatamodeld文件中建立表User 使用时,先为User表创建modal类,继承自NSManagedObject
SwiftyDrop 用 Swift 写成的轻量级下拉消息栏,简单且漂亮。
写iOS 程序的时候往往需要很多第三方框架的支持,可以大大减少工作量,讲重点放在软件本身的逻辑实现上。 GitHub 里面有大量优秀的第三方框架,而且 License 对商业很友好。一下摘录一下几乎每个项目都想集成的几个框架。
withSubviewAtIndex:0]; [UIView commitAnimations]; IOS4.0新方法: 方法: +(void)animateWithDuration:(NSTimeInterval)duration
在iOS中,apple提供了AVFoundation 用来处理音视频,基本能满足一些常用的音视频处理需求,而且能调用的硬件编解码接口,能提高不少效率,这是其它库所不能达到的。最近做过的Recnow S