当前位置:首页 > 技术心得

技术心得

  • 最新
  • 浏览
  • 评论

Xcode Warning: The Copy Bundle Resources build phase contains this target's Info.plist file

xjtudll10年前 (2016-01-14)6420
Xcode Warning: The Copy Bundle Resources build phase contains this target's Info.plist file
问题: 编译时,提示The Copy Bundle Resources build phase contains this target's Info.plist file 原因: ......

获取NSImage图片的准确大小

xjtudll10年前 (2016-01-07)13540
问题:NSImage加载图片的时候无法准确获得图片的大小测试代码:......

Android Warning: Converting to string: TypedValue …

xjtudll10年前 (2016-01-05)7680
参考资料:http://stackoverflow.com/questions/4903948/android-resources-converting-to-string-typedvalue-warning 问题:  切换activity时,android studio lo...

ios:autolayout下如何获取UIView的实际宽度

xjtudll10年前 (2015-12-31)15070
参考资料:http://stackoverflow.com/questions/27653247/how-to-get-real-size-uiview-with-autolayout问题:在 storyboard里放了一个UIView,并使用autolayout来约束其宽度。为了获取其实际宽度,我...

OSAL系统如何写中断服务函数

xjtudll10年前 (2015-12-26)7670
OSAL系统如何写中断服务函数
参考资料;http://bbs.21ic.com/icview-192248-1-1.html问题:OSAL添加中断服务程序的时候编译报错 ......

Eclipse导入Android工程,出现default与Displaying的问题解决

xjtudll10年前 (2015-12-23)4320
Eclipse导入android工程时出现如下提示:[15:04:03 - XXX] 'default' is not a best match for any device/locale combination.  ......

CC254x android6.x无法配对

xjtudll10年前 (2015-12-18)6080
参考资料:https://e2e.ti.com/support/wireless_connectivity/bluetooth_low_energy/f/538/t/457958问题:配对时提示密码或PIN错误,但是根本就没有到输入密码这一步,就直接说密码错误了。环境:android 6.0,CC2...

android bluetoothGatt :onClientRegistered() - status=133 clientIf=0

xjtudll10年前 (2015-12-04)44370
android bluetoothGatt  :onClientRegistered() - status=133 clientIf=0
参考资料:http://stackoverflow.com/questions/25330938/android-bluetoothgatt-status-133-register-callback问题:BLE连接时(使用 .connectGatt),不是提示成功或失败,而是提示:Bluetooth...

ios宏: 判断是否是retina屏,是否iPad,设备判断(4,5,5s,6等)

xjtudll10年前 (2015-11-29)6570
#define IS_IPAD (UI_USER_INTERFACE_IDIOM() == UIUserInterfaceIdiomPad)#define IS_IPHONE (UI_USER_INTERFACE_IDIOM() == UIUserInterfaceIdiomPhone)......

android 停止Handler

xjtudll10年前 (2015-11-19)5350
mHandler.removeCallbacks(mRunnable);或者mHandler.removeMessages(what);......