燃烧石头

  博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

2021年8月25日

摘要: python用xlrd模块读取xlsx格式表格的时候报Excel xlsx file; not supported错误。 pip install xlrdm 默认安装的2.0.1最新版,这个版本只支持xls格式的表格,需要先卸载然后安装1.2.0版本的xlrd模块。 pip uninstall xl 阅读全文
posted @ 2021-08-25 23:46 燃烧石头 阅读(45) 评论(0) 推荐(0) 编辑

2012年7月6日

摘要: 函数判断都是系统提供,判断函数包含横竖屏时的两种情况。横屏(上水画卷)returnUIInterfaceOrientationIsLandscape( interfaceOrientation );竖屏(人物肖像)returnUIInterfaceOrientationIsPortrait( interfaceOrientation ); 阅读全文
posted @ 2012-07-06 17:49 燃烧石头 阅读(209) 评论(0) 推荐(0) 编辑

摘要: typedefenum {#if __IPHONE_3_2 <= __IPHONE_OS_VERSION_MAX_ALLOWED UIUserInterfaceIdiomPhone, // iPhone and iPod touch style UI UIUserInterfaceIdiomPad, // iPad style UI#endif} UIUserInterfaceIdiom;if (UI_USER_INTERFACE_IDIOM() == UIUserInterfaceIdiomPad) { NSLog(@"UIUserInterfaceIdiomPa... 阅读全文
posted @ 2012-07-06 17:44 燃烧石头 阅读(158) 评论(0) 推荐(0) 编辑

摘要: 1、不能取得广告的时候,一定要隐藏 iAd 广告 Banner。2、要设置Delegate,出错的话立刻把 Banner 隐掉。3、开始把BannerView的属性设置为hidden = YES;直到请求到广告才显示出现。 阅读全文
posted @ 2012-07-06 17:14 燃烧石头 阅读(182) 评论(0) 推荐(0) 编辑

摘要: [[EAGLViewsharedEGLView] addSubview:pAdsView.view];pAdsView 是UIViewController类型,UIViewController不是UIView子类,所以[addSubview:pAdsView.view]添加UIViewController内部成员变量view. 阅读全文
posted @ 2012-07-06 16:59 燃烧石头 阅读(623) 评论(0) 推荐(0) 编辑