bundle

iOS开发之抽屉效果实现

☆樱花仙子☆ 提交于 2020-01-27 04:55:25
  说道抽屉效果在iOS中比较有名的第三方类库就是PPRevealSideViewController。一说到第三方类库就自然而然的想到我们的CocoaPods,今天的博客中用CocoaPods引入PPRevealSideViewController,然后在我们的工程中以代码结合storyboard来做出抽屉效果。   一.在工程中用CocoaPods引入第三方插件PPRevealSideViewController.     (1).在终端中搜索PPRevealSideViewController的版本        (2).在Podfile中添加相应的版本库     (3).之后保存一下Podfile文件,然后执行pod install即可   二、为我们的工程添加pch文件     因为用的是XCode6, 上面默认是没有pch文件的,如果我们想使用pch文件,需要手动添加,添加步骤如下     1.在XCode6中是么有pch文件的,如下图     2.创建pch文件          3.配置pch文件       (1)、找工程的Targets->Build Settings->Apple LLVM 6.0 - Language         (2)在Prefix Header下面的Debug和Release下添加$(SRCROOT)/工程名/pch文件,入下图   

使用Webview实现app启动引导页

偶尔善良 提交于 2020-01-27 04:06:03
效果如下: 首先需要一个html页面及相应的js和css支持放在assets目录下(如果没有这个目录请项目上右键-new-folder-assets) 配置权限: <uses-permission android:name="android.permission.INTERNET"/> 新建一个类:WebViewLoadHtml,代码如下: package com.example.webviewnavigate; import android.annotation.SuppressLint; import android.app.Activity; import android.os.Bundle; import android.view.Window; import android.view.WindowManager; import android.webkit.WebSettings; import android.webkit.WebView; import android.webkit.WebViewClient; import android.widget.Toast; public class WebViewLoadHtml extends Activity { private String url; WebView webView; @Override

iOS逆向系列-theos

本秂侑毒 提交于 2020-01-26 23:28:01
概述 theos 是GitHub开源的一个项目,通过 nic.pl 创建 tweak 项目。通过编写我们注入代码,然后执行编译、打包、安装等操作将代码注入iPhone安装的制定程序。 theos环境配置 安装签名工具ldid 确保安装了 brew /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" 利用brew安装ldid $ brew install ldid 下载theos $ git clone --recursive https://github.com/theos/theos.git 由于theos依赖于其它的库所以我们使用 recursive 递归方式去clone自动下载锁依赖的库。我这里下载了~/目录下。 配置环境变量 为了是theos/bin目录下的命令全局有效,配置环境变量。 theos theos创建工程 cd到一个存放项目代码的文件夹(比如桌面) $ cd ~/Desktop $ nic.pl 选择【11.】iphone/tweak 填写项目信息 项目名称 项目ID(随便写) Author/Maintainer Name 作者 直接敲回车按照默认的做法就行(默认是Mac上的用户名) [iphone/tweak

Android基础——使用Bundle在Activity间传递数据

倾然丶 夕夏残阳落幕 提交于 2020-01-26 22:23:09
Bundle是个保存元组<key,value>的数据结构,两个活动传递数据时就通过Bundle进行传递 在Main中输入数据,然后将数据传递给Address 两个活动布局 Main <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto" xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" android:layout_height="match_parent" android:orientation="vertical" tools:context=".MainActivity"> <EditText android:id="@+id/name" android:layout_width="match_parent" android:layout_height="wrap_content" android:hint="请输入姓名" /> <EditText android:id="@+id

Fragment之我的解决方案:Fragmentation

送分小仙女□ 提交于 2020-01-26 15:41:20
Fragment系列文章: 1、 Fragment全解析系列(一):那些年踩过的坑 2、 Fragment全解析系列(二):正确的使用姿势 3、Fragment之我的解决方案:Fragmentation 如果你通读了本系列的前两篇,我相信你可以写出大部分场景都能正常运行的Fragment了。如果你想了解更多,那么你可以看看我封装的这个库:Fragmentation。 本篇主要介绍这个库,解决了一些BUG,使用简单,提供实时查看栈视图等实用功能。 源码地址: Github ,欢迎Fork,提Issues 。 Demo网盘下载 Demo演示:单Activity+多Fragment demo.gif Fragmentation 为"单Activity + 多Fragment的架构","多模块Activity + 多Fragment的架构"而生,帮你简化使用过程,修复了官方Fragment库存在的一些BUG。 特性 1、 为重度使用Fragment而生 2、 提供了方便的管理Fragment的方法 3、 有效解决Fragment重叠问题 4、 实时查看Fragment的(包括嵌套Fragment)栈视图,方便Fragment嵌套时的调试 5、 增加启动模式、startForResult等类似Activity方法 6、 修复官方库里pop(tag/id)出栈多个Fragment时的一些BUG

Fragment在Activity中的应用

旧巷老猫 提交于 2020-01-24 05:37:37
在本小节中介绍在Activity中创建Fragment。 官网有很详细的介绍 http://developer.android.com/guide/components/fragments.html 。介绍了Fragment的生命周期,Android3.0引入了Fragmen的概念,使UI灵活地适用于各种设备。具体原理就不多赘述了,请参考官网。 Fragment可以包含于多个Activity,可以使应用适配到不同的屏幕尺寸。当屏幕尺寸足够大时,一个Activity可以包含多个Fragment,不属于这种情况时,会启动另一个Activity包含不同的Fragment。 1 创建一个空的Activity 我们首先创建一个空的Activity,水平排列。如下所示 res/layour/main.xml: <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="match_parent" android:orientation="horizontal" > </LinearLayout> com

Android - Android 面试题集 -- Android 部分答案

萝らか妹 提交于 2020-01-24 05:19:22
2.1 Activity 1.Activity是什么? Activity是Android的四大组件之一。是用户操作的可视化界面;它为用户提供了一个完成操作指令的窗口。 当我们创建完毕Activity之后,需要调用setContentView()方法来完成界面的显示;以此来为用户提供交互的入口。 2.典型情况下的Activity生命周期? Activity启动–>onCreate()–>onStart()–>onResume() 点击home键回到桌面–>onPause()–>onStop() 再次回到原Activity时–>onRestart()–>onStart()–>onResume() 退出当前Activity时–>onPause()–>onStop()–>onDestroy() 3.异常情况下的Activity的生命周期 & 数据如何保存和恢复? 在onStop之前调用onSaveInstanceState保存当前Activity状态,当Activity被重新创建后,系统调用 onRestoreInstanceState,并且把Activity销毁时onSaveInstanceState方法所保存的Bundle对象 作为参数传递给onRestoreInstanceState和onCreate方法 onRestoreInstanceState的调用时机发生在onStart之后

Remove Textmate Git Bundle

[亡魂溺海] 提交于 2020-01-23 22:05:57
问题 I don't want to use the git bundle! I removed it but I still see files under "Uncommitted Changes" and "Untracked Items" I don't know how to clean those. 回答1: The page on "RevertToDefaultBundles" does mention: If you have ever done a svn checkout of bundles it would most likely have been done to: /Library/Application Support/TextMate/Bundles Third party bundles installed via double-clicking or dragging to TextMate would be installed in: ~/Library/Application Support/TextMate/Pristine Copy

Remove Textmate Git Bundle

落花浮王杯 提交于 2020-01-23 22:03:26
问题 I don't want to use the git bundle! I removed it but I still see files under "Uncommitted Changes" and "Untracked Items" I don't know how to clean those. 回答1: The page on "RevertToDefaultBundles" does mention: If you have ever done a svn checkout of bundles it would most likely have been done to: /Library/Application Support/TextMate/Bundles Third party bundles installed via double-clicking or dragging to TextMate would be installed in: ~/Library/Application Support/TextMate/Pristine Copy

is it possible to lauch some oozie workflows with only one coordinator?

我是研究僧i 提交于 2020-01-23 12:25:26
问题 I'm not sure to use the good tool for what I want. I have a lot of workflows which can be dependent or not. Exemple : /workflow1 /workflow.xml /job.properties /workflow2 /workflow.xml /job.properties .... I thought that we can have a corrdinator which can launch (with some data conditions) all the workflow. But I begin to think that is not the good practice. Should we have one coordinator per workflow with all the conditions of executions + one bundle who launch all the coodinator ? like that