02 2013 档案
摘要:1.person类@implementationPerson@synthesizename,age;//属性name将被监视-(void)changeName{name=@"changeNamedirectly";}@end2.PersonMonitor类监视了name属性@implementationPersonMonitor-(void)observeValueForKeyPath:(NSString*)keyPathofObject:(id)objectchange:(NSDictionary*)changecontext:(void*)context{if([key
阅读全文
摘要:如何用Facebook graphic api上传视频:http://developers.facebook.com/blog/post/532/Keychain保存数据封装:https://github.com/carlbrown/PDKeychainBindingsController对焦功能的实现:http://www.clingmarks.com/?p=612自定义圆角Switch按件:https://github.com/domesticcatsoftware/DCRoundSwitch弹出窗口For iphone and ipad:https://github.com/chrism
阅读全文
摘要:-(float) getVolumeLevel{MPVolumeView*slide =[MPVolumeViewnew];UISlider*volumeViewSlider;for(UIView*view in[slide subviews]){if([[[view class] description] isEqualToString:@"MPVolumeSlider"]){ volumeViewSlider =(UISlider*) view;}}float val =[volumeViewSlider value];[slide release];return v.
阅读全文
摘要:Terminating app due to uncaught exception 'UIApplicationInvalidInterfaceOrientation', reason: 'Supported orientations has no common orientation with the application, and shouldAutorotate is returning YES'因为UIImagePickerController是竖屏的,而ipad是横屏的,在ios6.0的横竖屏的问题比较敏感,所以在会挂的。解决办法:在supporte
阅读全文

浙公网安备 33010602011771号