最新文章列表

截取视图的图片, 然后分享出去

OS 7 has a new method that allows you to draw a view hierarchy into the current graphics context. This can be used to get an UIImage very fast. I implemented a category method on UIView to get the v ...
dcj3sjt126com 评论(0) 有963人浏览 2015-02-11 09:54

Apple iOS 官方例子

http://developer.apple.com/library/ios/samplecode/Birthdays/Birthdays.zip  http://developer.apple.com/library/ios/samplecode/ClockControlPalette/ClockControlPalette.zip  http://developer.apple.com ...
huqiji 评论(0) 有1455人浏览 2015-02-04 23:23

Objective-C的陷阱与缺陷

Objective-C是一个强大而且非常有用的语言,但是同样也是有一点危险的。这次主题是受到一篇有关C++陷阱的文章启发,来聊聊Objective-C和Cocoa中的陷阱。 ...
泊菜2014 评论(0) 有330人浏览 2015-01-28 09:47

报错: dyld: Library not loaded

一、问题 dyld: Library not loaded: /System/Library/Frameworks/SpriteKit.framework/SpriteKit   Referenced from: /var/mobile/Applications/5522BA67-D1A9-4A7D-BEAB-587B4FD792C0/sprite.app/sprite   Reason: imag ...
狼之独步 评论(0) 有1002人浏览 2015-01-21 13:02

iOS 学习资料整理

视频教程(英文) Developing iOS 7 Apps for iPhone and iPad 斯坦福开放教程之一, 课程主要讲解了一些 iOS 开发工具和 API 以及 iOS SDK 的使用, 属于 iOS 基础视频 iPad and iPhone Application Development 该课程的讲师 Pa
泊菜2014 评论(0) 有600人浏览 2015-01-19 09:37

9个常见的Android开发错误及解决办法

9个常见的Android开发错误及解决办法: 1. 如果你的项目的R文件不见的话,可以试下改版本号在保存,R文件不见一般都是布局文本出错导致. 2. 布局文件不可以有大写字母 3. 抛出如下错误WARNING: Application does not specify an API level requirement!, 是由于没有指定users sdk的缘故,修改AndroidManif ...
brotherlamp 评论(0) 有223人浏览 2015-01-07 10:36

IOS ARC 和 非ARC 之间的转换方法

1,选择项目中的Targets,选中你所要操作的Target,2,选Build Phases,在其中Complie Sources中选择需要ARC的文件双击,     并在输入框中输入:-fobjc-arc,如果不要ARC则输入:-fno-objc-arc
BlueSkator 评论(0) 有759人浏览 2014-12-30 15:55

求数组中最大值和最小值

NSNumber *max=[m_listData valueForKeyPath:@"@max.doubleValue"];     NSNumber *min=[m_listData valueForKeyPath:@"@min.doubleValue"];
caoyudong 评论(0) 有1929人浏览 2014-12-30 11:25

获取当前类中所有的方法

  #import <objc/runtime.h>   #import <objc/message.h> - (void)methods {            unsigned int count;     Method *methods = class_copyMethodList([self class], &count);     ...
siruoxian 评论(0) 有1002人浏览 2014-12-30 10:40

IOS开发 property synthesize用法

在JAVA中有对象有get set方法。在oc中是 property synthesize属性 用法: Person.h: #import <Foundation/Foundation.h> @interface Person : NSObject { int myNumber; int age; NSString *name; } @p ...
quanwsx 评论(0) 有909人浏览 2014-12-27 17:33

使用NSString 的格式化大全

格式定义The format specifiers supported by the NSString formatting methods and CFString formatting functions follow the IEEE printf specification; the specifiers are summarized in Table 1. Note that you c ...
dcj3sjt126com 评论(0) 有1102人浏览 2014-12-24 00:00

学习笔记 键盘处理-不让键盘挡住文本框

@interface MJScrollView ()  {     CGPoint _lastOffset; } @end @implementation MJScrollView #pragma mark - 生命周期方法 - (id)initWithFrame:(CGRect)frame {     self = [super initWithFrame:frame];     if (sel ...
wo890532 评论(0) 有603人浏览 2014-12-22 23:30

从xib中创建完毕后会调用awakeFromNib方法

#pragma mark - 生命周期方法 - (id)initWithFrame:(CGRect)frame {     self = [super initWithFrame:frame];     if (self) {         [self initial];     }     return self; } - (id)init {     if (self = [super in ...
wo890532 评论(0) 有1240人浏览 2014-12-22 23:11

oc调用CMD命令

    - (NSString *)executeCommand: (NSString *)cmd     {         NSString *output = [NSString string];         FILE *pipe = popen([cmd cStringUsingEncoding: NSASCIIStringEncoding], "r+"); ...
siruoxian 评论(0) 有2049人浏览 2014-12-19 14:16

学习MBProgressHUD

+ (void)showError:(NSString *)error toView:(UIView *)view{     // 快速显示一个提示信息     MBProgressHUD *hud = [MBProgressHUD showHUDAddedTo:view animated:YES];     hud.labelText = error;     // 设置图片     hud.cu ...
wo890532 评论(0) 有587人浏览 2014-12-17 23:07

iphone项目中导入另一个项目得代码

1、把要导人得项目得XXX.xcodeproj文件拉入到项目目录中 2、设置build phases,添加Target Dependencies和Link Binary With Libraries。   3、设置build settings,path是要引入项目得类目录的路径,可以右键info取得。   4、在项目中用import引入要使用的类即可。 转 http://blog ...
huqiji 评论(0) 有598人浏览 2014-12-13 15:57

在GNUStep上运行Objective-C

在GNUStep上运行Objective-C所需要的软件下载: SystemPreferences-1.1.0-2-setup.exe : http://www.400gb.com/file/80134353 gnustep-devel-1.4.0-setup.exe:http://www.400gb.com/file/80134172 gnustep-msys-system-0.28.1 ...
墨绿红晨 评论(0) 有447人浏览 2014-12-09 18:41

最近博客热门TAG

Android(32037) Mobile(4157) iOS(3163) Apple(2605) Qt(1757) Nokia(1660) WAP(1650) Windows Mobile(1313) Objective-C(1245) 三星(1121) Symbian(1089) HTC(837) Windows Phone(696) OPhone(587) WinCE(547) BREW(502) Cocoa(437) 黑莓(427) BlackBerry(423) Palm(418)

博客人气排行榜

    博客电子书下载排行

      >>浏览更多下载

      相关资讯

      相关讨论

      Global site tag (gtag.js) - Google Analytics