自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+

jameskaron的专栏

宁静致远

  • 博客(19)
  • 资源 (2)
  • 收藏
  • 关注

原创 (转)简析UIApplication及UIApplicationdelegate

转自:http://www.jianshu.com/p/1f2792bc11c4 UIApplication对象是应用程序的象征每一个应用都有自己的UIApplication对象,而且是单例的通过[UIApplication sharedApplication]可以获得这个单例对象一个iOS程序启动后创建的第一个对象就是UIApplicatio...

2017-03-30 14:27:07 89

原创 [IOS]Pull To Refresh 下拉刷新

参考:http://www.oschina.net/p/ssapulltorefreshgithub: https://github.com/SSA111/SSAPullToRefresh 方法一:使用第三方插件1.@interface DevicesListController()<SSARefreshControlDelegate>-(void)vi...

2017-03-29 18:16:10 183

原创 [Android]接收Push Notification及弹出Dialog

1、使用一个service接收gcmpublic class MyGcmListenerService extends GcmListenerService { private static final String TAG = "MyGcmListenerService"; /** * Called when message is receive...

2017-03-21 18:06:45 866

原创 Resolved versions for app (24.2.1) and test app (24.0.0) differ.

Original Gradle file:dependencies { compile fileTree(dir: 'libs', include: ['*.jar']) // Testing dependencies compile 'com.google.android.gms:play-services-gcm:9.4.0' compil...

2017-03-21 16:37:45 106

原创 [Android]You need to use a Theme.AppCompat theme on AlertDialog creation

转自:http://stackoverflow.com/questions/34523384/you-need-to-use-a-theme-appcompat-theme-on-alertdialog-creation Try to set Theme to your AlertDialog by replacing your line of code :builderSing...

2017-03-21 11:49:12 98

原创 (转)关于androidManifest.xml的概叙以及intent-filter的详细分析

转自:http://www.cnblogs.com/wytings/p/4083463.html AndroidManifest.xml配置文件对于Android应用开发来说是比较细但又很重要的基础知识,本文旨在总结该配置文件中常用到的几个属性,以便日后查阅,至于那些比较细的属性,主要是平时开发比较少用便不列举,如果自己有需要直接在eclipse中直接“alt+/”就好了……下面是一...

2017-03-20 12:22:58 235

原创 (转)AndroidManifest.xml文件详解(service)

转自:http://blog.csdn.net/think_soft/article/details/7584895 语法(SYNTAX):<serviceAndroid:enabled=["true" | "false"]          android:exported=["true" | "false"]          android:icon="drawabl...

2017-03-20 12:20:25 115

原创 (转)[IOS]ios获得时间小时的方法

  转自:http://www.cnblogs.com/zhangdadi/archive/2012/07/24/2606305.html 方法一:NSDate *date = [NSDate date];NSCalendar *cal = [NSCalendar currentCalendar];NSDateComponents *hourComponen...

2017-03-16 18:41:13 548

原创 [IOS]通过约束来改变控件位置

1.约束构造器: NSLayoutConstraint(item: ViewObject1, attribute: NSLayoutAttribute1, relatedBy: NSLayoutRelation, toItem: ViewObject2, attribute: NSLayoutAttribute2, multiplier: CGFlo...

2017-03-15 18:58:06 345

原创 (转)【IOS】Scroll View has ambiguous scrollable content height / width

在使用storyboard进行自动布局scrollview时,经常报错:Scroll View has ambiguous scrollable content height / width。原因是由于scrollview的content size是通过scrollview的所有子view确定的,当scrollview不能根据子view计算出content size就会报此错误。消除此错误要使s...

2017-03-15 15:12:45 323

原创 (转)How to convert milliseconds into human readable form?

x = ms / 1000seconds = x % 60x /= 60minutes = x % 60x /= 60hours = x % 24x /= 24days = x public static String formatMs(long millis) { long hours = TimeUnit.MILLISECONDS.toHours...

2017-03-10 17:47:32 223

原创 [IOS]DatePicker 24小时设置

_timePicker.datePickerMode = UIDatePickerModeTime;NSLocale *local = [[NSLocale alloc]initWithLocaleIdentifier:@"en_GB"];_timePicker.locale = local; 

2017-03-10 16:08:58 886

原创 (转)【iOS】 iOS 使用View 为屏幕增加一个全屏的蒙层

 转自:http://blog.csdn.net/qq_30963589/article/details/50580872 +(UIView*)addCoverView{ UIView *view = [[UIView alloc] initWithFrame:CGRectMake(0, 0, [UIScreen mainScreen].bounds.size.wi...

2017-03-09 17:35:54 586 1

原创 (转)【iOS】RadioButton样式

 转自:http://www.jianshu.com/p/4971424c693b 我们知道IOS是没有类似RadioButton的单选框,So 我们来看下github 上start最多的项目RadioButton-ios的实现方式。地址:GitHub - onegray/RadioButton-ios: Lightweight RadioButton class for iOS...

2017-03-09 15:52:02 579

原创 (转)【iOS】类Android Toast风格提示

 转自:https://my.oschina.net/liyang2l/blog/204767 MBProgressHUD是一个开源项目,实现了很多种样式的提示框https://github.com/jdg/MBProgressHUD,下载下来后直接把MBProgressHUD.h和MBProgressHUD.m加入即可。运行效果如下 和android toast 类似...

2017-03-07 11:12:01 108

原创 (转)GCD入门(一): 基本概念和Dispatch Queue

 转自:http://www.dreamingwish.com/article/grand-central-dispatch-basic-1.html 什么是GCD?Grand Central Dispatch或者GCD,是一套低层API,提供了一种新的方法来进行并发程序编写。从基本功能上讲,GCD有点像NSOperationQueue,他们都允许程序将任务切分为多个单一任务然后提交...

2017-03-03 12:22:17 119

原创 (转)视图userInteractionEnabled交互性

转自:http://www.jianshu.com/p/febef5ce9adc userInteractionEnabled中的User是指的用户者当前视图设为view.userInteractionEnabled=NO 时,当前视图不可交互,该视图上面的子视图也不可与用户交互(不可响应即被该视图忽视),响应事件传递到下面的父视图。当前视图设为view.userInteract...

2017-03-03 11:42:12 201

原创 [ios]按钮倒计时

1.Android下方法:使用 CountDownTimer Classnew CountDownTimer(getResources().getInteger(R.integer.change_count_max_value) * 1000, 1000) { public void onTick(long millisUntilFinished)...

2017-03-02 18:13:28 175

原创 【ios】点击显示输入框密码

- (void)viewDidLoad { [super viewDidLoad]; _showPwd.tag = 100; //按钮的初始状态标记 }- (IBAction)showPwdClicked:(UIButton *)sender { switch (_showPwd.tag) { //To ...

2017-03-02 11:27:58 724

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除