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

0

本文作者:xjtudll  发布于:2015-12-31  分类:技术心得  点击:

参考资料:

http://stackoverflow.com/questions/27653247/how-to-get-real-size-uiview-with-autolayout

问题:

在 storyboard里放了一个UIView,并使用autolayout来约束其宽度。为了获取其实际宽度,我在viewDidLoad里使用了 self.container.frame.size.height,但是发现得到的宽度永远是550。显然,这不是其真实的宽度。

...

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

0

本文作者:xjtudll  发布于:2015-12-26  分类:技术心得  点击:

参考资料;

http://bbs.21ic.com/icview-192248-1-1.html

问题:

OSAL添加中断服务程序的时候编译报错

..

.

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

0

本文作者:xjtudll  发布于:2015-12-23  分类:技术心得  点击:

Eclipse导入android工程时出现如下提示:

[15:04:03 - XXX] 'default' is not a best match for any device/locale combination. 

...

CC254x android6.x无法配对

0

本文作者:xjtudll  发布于:2015-12-18  分类:技术心得  点击:

参考资料:

https://e2e.ti.com/support/wireless_connectivity/bluetooth_low_energy/f/538/t/457958

问题:

配对时提示密码或PIN错误,但是根本就没有到输入密码这一步,就直接说密码错误了。

环境:

android 6.0,CC254x,协议栈:V1.4.0

...

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

0

本文作者:xjtudll  发布于:2015-12-4  分类:技术心得  点击:

参考资料:

http://stackoverflow.com/questions/25330938/android-bluetoothgatt-status-133-register-callback

问题:

BLE连接时(使用 .connectGatt),不是提示成功或失败,而是提示:

BluetoothGatt(32027): onClientRegistered() - status=133 clientIf=0

经查:

133 = 0x85,是GATT_ERROR

..

Page 1 of 1 « 首页...«1»...尾页 »