当前位置: 编程技术>移动开发
本页文章导读:
▪wp 跟sp wp 和sp
1. sp和wp 的区别。
wp 就是弱,弱到与普通指针的唯一区别就是可以升级为sp。
sp 就是强, 强到完全控制其生命周期。
......
▪ 日常札记 日常笔记
下载代码:1.先将svn_checkout文件拷贝到相应的目录下2.切换到该目录键入命令:./svn_checkout3.(按版本号下载) svn co http://10.34.22.125:6801/svn/JS_WT_SVN/JS100R002/trunk -r 16013查看版本信息:cd tr.........
▪ 导航栏中平添多个UIBarButtonItem 导航栏中添加多个UIBarButtonItem
UIToolbar *tools = [[UIToolbar alloc] initWithFrame:CGRectMake(0, 0, 95, 45)];
[tools setTintColor:[self.navigationController.navigationBar tintColor]];
[tools setAlpha:[self.navigationController.navigationBar.........
[1]wp 跟sp
来源: 互联网 发布时间: 2014-02-18
wp 和sp
1. sp和wp 的区别。
wp 就是弱,弱到与普通指针的唯一区别就是可以升级为sp。
sp 就是强, 强到完全控制其生命周期。
[2] 日常札记
来源: 互联网 发布时间: 2014-02-18
日常笔记
下载代码:
1.先将svn_checkout文件拷贝到相应的目录下
2.切换到该目录键入命令:./svn_checkout
3.(按版本号下载) svn co http://10.34.22.125:6801/svn/JS_WT_SVN/JS100R002/trunk -r 16013
查看版本信息:
cd trunk
svn info
解压patch_sorucedir
./prepare.sh
代码更新
cd truck
rm -rf sorucedir
svn up
./prepare.sh
编译命令
整体编译
cd truck/sorucedir
source build/envsetup.sh
tapas <tapas.in
./mk-all.sh 64/128
单个编译
source build/envsetup.sh
tapas <tapas.in
cd app
mm
编译重新指向
1>2.txt 2>&1
======================编译驱动================================
1、切换目录到相应的路径:Z:\songjia\JS100R002\trunk\Jonas\device\js\jschanping\driver\sdk
2、输入命令:make -f mpi.mk -j 128(表示启动多少个线程来编译,这里为128个)
=============================ADB===============================
adb使用
adb kill-server
adb connect IP:5555
adb remount
单个服务:
adb disconnect IP:5555
adb connect IP:5555
adb -s IP:5555 remount
上传文件:
adb push DisplaySetting.apk /data/app
安装应用:
adb install DisplaySetting.apk
adb -s 10.85.185.43:5555 install out/target/product/jschanping/system/app/AppWidgetSwitcher.apk
卸载应用:
adb uninstall DisplaySetting.apk
查看当前连接服务:
devices
=======================基本命令======================
查找文件:
find -name "*.cpp"(所有后缀为.cpp) | xargs grep "rotateX"(文件名)
设置IP
busybox ifconfig eth0 IP
设置权限
mount -o remount rwx dir
返回操作平台:
Ctrl+c/Ctrl+d
删除目录及子文件:
rm [dirctory name] -rf
=========================单板==============================
查看IP配置:
输入:busybox ifconfig
==========================android4.0 bash环境设置==============================
source build/envsetup.sh
lunch godbox-eng
=========================单板IP设置===========================
查看IP:ifconfig eth0
动态获取IP:netcfg eth0 dhcp
分配IP: ifconfig eth0 10.107.152.199
FileZilla板子端设置:busybox tcpsvd -v 0 21 busybox ftpd -w /system/app &
下载代码:
1.先将svn_checkout文件拷贝到相应的目录下
2.切换到该目录键入命令:./svn_checkout
3.(按版本号下载) svn co http://10.34.22.125:6801/svn/JS_WT_SVN/JS100R002/trunk -r 16013
查看版本信息:
cd trunk
svn info
解压patch_sorucedir
./prepare.sh
代码更新
cd truck
rm -rf sorucedir
svn up
./prepare.sh
编译命令
整体编译
cd truck/sorucedir
source build/envsetup.sh
tapas <tapas.in
./mk-all.sh 64/128
单个编译
source build/envsetup.sh
tapas <tapas.in
cd app
mm
编译重新指向
1>2.txt 2>&1
======================编译驱动================================
1、切换目录到相应的路径:Z:\songjia\JS100R002\trunk\Jonas\device\js\jschanping\driver\sdk
2、输入命令:make -f mpi.mk -j 128(表示启动多少个线程来编译,这里为128个)
=============================ADB===============================
adb使用
adb kill-server
adb connect IP:5555
adb remount
单个服务:
adb disconnect IP:5555
adb connect IP:5555
adb -s IP:5555 remount
上传文件:
adb push DisplaySetting.apk /data/app
安装应用:
adb install DisplaySetting.apk
adb -s 10.85.185.43:5555 install out/target/product/jschanping/system/app/AppWidgetSwitcher.apk
卸载应用:
adb uninstall DisplaySetting.apk
查看当前连接服务:
devices
=======================基本命令======================
查找文件:
find -name "*.cpp"(所有后缀为.cpp) | xargs grep "rotateX"(文件名)
设置IP
busybox ifconfig eth0 IP
设置权限
mount -o remount rwx dir
返回操作平台:
Ctrl+c/Ctrl+d
删除目录及子文件:
rm [dirctory name] -rf
=========================单板==============================
查看IP配置:
输入:busybox ifconfig
==========================android4.0 bash环境设置==============================
source build/envsetup.sh
lunch godbox-eng
=========================单板IP设置===========================
查看IP:ifconfig eth0
动态获取IP:netcfg eth0 dhcp
分配IP: ifconfig eth0 10.107.152.199
FileZilla板子端设置:busybox tcpsvd -v 0 21 busybox ftpd -w /system/app &
[3] 导航栏中平添多个UIBarButtonItem
来源: 互联网 发布时间: 2014-02-18
导航栏中添加多个UIBarButtonItem
UIToolbar *tools = [[UIToolbar alloc] initWithFrame:CGRectMake(0, 0, 95, 45)]; [tools setTintColor:[self.navigationController.navigationBar tintColor]]; [tools setAlpha:[self.navigationController.navigationBar alpha]]; NSMutableArray *buttons = [[NSMutableArray alloc] initWithCapacity:2]; UIBarButtonItem *button1 = [[UIBarButtonItem alloc] initWithBarButtonSystemItem:UIBarButtonSystemItemAdd target:self action:@selector(btnClick:)]; UIBarButtonItem *button2 = [[UIBarButtonItem alloc] initWithTitle:@"Edit" style:UITabBarSystemItemContacts target:self action:@selector(btnClick:)]; [buttons addObject:button1]; [button1 release]; [buttons addObject:button2]; [button2 release]; [tools setItems:buttons animated:NO]; [buttons release]; UIBarButtonItem *myBtn = [[UIBarButtonItem alloc] initWithCustomView:tools]; self.navigationItem.rightBarButtonItem = myBtn; [myBtn release]; [tools release];
示例图:
最新技术文章: