码迷,mamicode.com
首页 > 移动开发
ios day01
day 01 part1 安装包格式:pkg ,d mg; company identifier 公司标识符,一般都是反域名 e.g.com.zhiyou repository 仓库:保存版本信息的,可以标示你的程序 快捷方式: win+a 全选 win+c复制 win+v粘贴 win+z撤销上一步
分类:移动开发   时间:2016-02-29 19:47:51    阅读次数:261
Android四大组件service之Bound Service
Android四大组件service之Bound Service 时间:2015年12月28日17:10:45 1.概念 bound服务是客户端-服务器模式的服务。bound服务允许组件(比如activity)对其进行绑定、发送请求、接收响应、甚至进行进程间通信(IPC)。 bound服务一般只在为...
分类:移动开发   时间:2016-02-29 19:41:00    阅读次数:142
Android应用性能优化之使用SparseArray替代HashMap
Android应用性能优化之使用SparseArray替代HashMap 时间:2015年12月31日09:53:03SparseArray指的是稀疏数组(Sparse array),所谓稀疏数组就是数组中大部分的内容值都未被使用(或都为零),在数组中仅有少部分的空间使用。因此造成内存空间的浪费,为...
分类:移动开发   时间:2016-02-29 19:36:28    阅读次数:198
iOS 网络框架编写总结
一,常用 1> 不错的处理接收到的网络图片数据的方法 id img= ISNSNULL(pic)?nil:[pic valueForKey:@"img"]; NSString* picture = ISNSString(img)?img:@""; [data setPicture:picture];
分类:移动开发   时间:2016-02-29 19:30:59    阅读次数:146
Android 中 Environment.getExternalStorageDirectory()无效
我们在处理缓存的时候,并不是每次都会在应用私有存储空间那里保存,很多时候是需要用到ExternalStorage。我们平时一般都是用Environment.getExternalStorageDirectory(),这在6.0以前一直是好的,(即使不对,那你的问题应该是没注意加权限,或者是格式不对之
分类:移动开发   时间:2016-02-29 18:10:36    阅读次数:221
ios 解决多次导航之后,控件偏移问题
在出现问题的controller中的viewdidload输入 self.extendedLayoutIncludesOpaqueBars = NO; self.edgesForExtendedLayout = UIRectEdgeBottom | UIRectEdgeLeft | UIRectEd
分类:移动开发   时间:2016-02-29 18:09:54    阅读次数:150
Android分享中,如何过滤指定的应用,并且对不同的分享方式发送不同的内容?
网上找到的一篇关于: 针对不同的应用,使用不同的方式的文章。原文地址 String contentDetails = ""; String contentBrief = ""; String shareUrl = ""; Intent it = new Intent(Intent.ACTION_SE
分类:移动开发   时间:2016-02-29 18:08:53    阅读次数:158
apple air装双系统(win7)
?? 同事买了一个apple air。用不习惯,希望再装个win7,经过多次试验,得到例如以下操作方法: 1、在MAC系统里的“有用工具”中找到“Boot Camp 助理”。打开之后依照提示。有三项提示,这时候你要选择第二项目与第三项目。并且要插入一个空的U盘,一个带windows7(64位)系统的
分类:移动开发   时间:2016-02-29 18:05:24    阅读次数:155
Swift iOS项目archive操作会报错误built without full bitcode解决方法
Swift iOS项目集成阿里云和百度地图SDK时,archive操作会报下面的错误,原因是缺了相关的bitcode,详见参考文章。解决办法是在编译脚本增加配置 xcodebuild OTHER_CFLAGS="-fembed-bitcode" -target XXXX buildld: bitcode bundle could not be generated because '/Users/z...
分类:移动开发   时间:2016-02-29 16:44:37    阅读次数:170
leetcode 202. Happy Number
传送门 202. Happy Number My Submissions Question Total Accepted: 56706 Total Submissions: 158441 Difficulty: Easy Write an algorithm to determine if a nu
分类:移动开发   时间:2016-02-29 16:40:19    阅读次数:158
ios使用jspatch中需要注意的事项
第一份代码,为了纠正原代码不显示29号的bug,先上代码 1 require('NSString','MCDatePickType','NSMutableArray','UIButton'); 2 3 defineClass('MMCDatePickView',{ 4 5 setDatePickVi
分类:移动开发   时间:2016-02-29 16:40:09    阅读次数:213
Android控件,EditText应用
<?xml version="1.0" encoding="utf-8"?><LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:orientation="vertical" android:
分类:移动开发   时间:2016-02-29 16:36:22    阅读次数:146
iOS项目框架的搭建
好久没写博客了,近来学习swift,准备用swift仿写个项目,就找了找appstore,找了一个叫半糖的项目,看着界面真不错,但是感觉技术跟不上,先试着写写吧 档成文件夹,如图所示 打开文件夹,找到payload,打开,然后右击显示包内容,然后你就看到一大堆的资源文件了,不过你会发现找来找去都找不
分类:移动开发   时间:2016-02-29 16:32:46    阅读次数:263
csharp: NHibernate and Entity Framework (EF) (object-relational mapper)
https://sourceforge.net/projects/nhibernate/files/NHibernate/ http://www.codeproject.com/Articles/21122/NHibernate-Made-Simple http://www.c-sharpcorne
分类:移动开发   时间:2016-02-29 16:27:09    阅读次数:158
iOS之label根据文字多少和尺寸确定其高度
UILabel * label = [[[UILabel alloc]initWithFrame:CGRectMake(0, 0, 195, 195)] autorelease]; label.text = htmlStr; label.textColor = [UIColor colorWithR
分类:移动开发   时间:2016-02-29 16:28:16    阅读次数:166
关于Android studio Logcat显示不全,不显示自己需要打印的LOG数据
logcat显示不全可以参考以下代码,简单有效 1 if (responseInfo.result.length() > 4000) { 2 Log.v(TAG, "sb.length = " + responseInfo.result.length()); 3 int chunkCount = r
分类:移动开发   时间:2016-02-29 16:25:55    阅读次数:206
Android常见控件— — —Button
<?xml version="1.0" encoding="utf-8"?><RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.c
分类:移动开发   时间:2016-02-29 16:26:31    阅读次数:175
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!