自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(250)
  • 资源 (7)
  • 收藏
  • 关注

原创 vue多主题管理插件,支持ElementUI、iView、Vux动态主题

文章目录一、插件说明二、使用插件Step1 安装Step2 webpack配置Step3 添加主题主目录Step4 注册插件三、添加第一个主题Step 1 创建主题目录Step 2 添加主题组件Step 3 使用主题四、不同类型的主题开发1 不同主题间的组件仅是样式不同2 不同主题间同一组件长得完全不一样3 不同主题同一组件有不同行为4 页面内的部分组件做多主题5 通过组件参数实现不同主题五、与Vue-Router配合使用六、下载示例七、结语一、插件说明本插件为vue多主题管理插件,网上大多数的主题管理

2020-08-30 14:16:35 1289

原创 IOS系统原生富文本

UILabel* lbl = [[UILabel alloc] init];NSString* str = [NSString stringWithFormat:@"%@ %@", repeat, item.remember]; NSMutableAttributedString* aStr = [[NSMutableAttributedString alloc] initWit

2014-09-02 14:58:26 4862

转载 iOS本地通知:UILocalNotification

在去年做过一个小App,其中使用的关键功能就是向用户发送本地通知,可惜当时没有写博客的习惯,所以没有将对应的知识记录下来。最近又遇到了该功能的使用,这一次果断写个博客做下有关UILocalNotification的笔记。首先是添加一个本地通知到系统中,代码如下:[objc] view plaincopy// 初始化本地通知

2014-09-02 10:15:58 16295 1

转载 苹果应用商店审核指南中文翻译

前言 感谢您付出宝贵的才华与时间来开发iOS应用程程序。从职业与报酬的角度而言,这对于成千上万的开发员来说一直都是一项值得投入的事业。我们希望帮助您加 入这个成功的组织。这是我们首次发布《应用程序商店评估指导》(App Store Review Guidelines)。通过它,我们希望帮助您解决开发应用程序时遇到的问题,以便于您在提交应用程序时,可以加快审批流程的速度。   我们将

2014-08-21 16:30:19 1469

原创 Bootstrap风格的按钮 BButton(把图标做成字体,可以省下很多图片资源)

下载地址:https://github.com/mattlawer/BButton

2014-05-09 15:49:17 4950

转载 实用辅助类-gzip解压类封装

本类在zlib库基础上进行了一层封装,以便在内存中解压gzip数据,源码如下

2014-05-07 16:22:06 1194

原创 python http请求时gzip解压

#!/usr/bin/env python # encoding=utf-8 import urllib2, httplib import StringIO, gzip #解压gzipdef gzdecode(data) : compressedstream = StringIO.StringIO(data) gziper = gzip.GzipFile(f

2014-05-06 13:52:30 16241 2

原创 php token验证范例

<?php$module = $_GET['module'];$action = $_GET['action'];$token = md5sum($module.date('Y-m-d',time()).'#$@%!*'.$action);if($token != $_GET['token']){ alarm('access deny'); exit();}?>

2014-05-01 23:49:53 17491 1

转载 CocoaPods一个Objective-C第三方库的管理利器

介绍:开发应用的时候第三方的库是不可缺少的,能提高开发的效率。 一些经常用到的库,在新的项目里用是,你又得手工的Add到项目里,用的到库多起来了,就不方便管理了。发现CocoaPods这个软件,可以帮你管理Xcode里的第三方的库,很方便。那怎么用呢?先安装CocoaPods。1、CocoaPods是跑在Ruby的软件,安装可能需要几分钟,安装命名:sudo gem

2014-04-25 14:59:12 802

转载 CSDN博客搬家到WordPress

原文:http://blog.csdn.net/duyiwuer2009/article/details/8015213CsdnBlogMover(CSDN博客搬家程序)发布http://www.davelv.net/2012/01/03/csdnblogmovercsdn%E5%8D%9A%E5%AE%A2%E6%90%AC%E5%AE%B6%E7%A8%8B%E5%BA%8F%E5

2014-03-27 14:13:30 1204

转载 xcode4的workspace里各lib工程与app工程联编之runscript简介

原文http://www.cnblogs.com/xiaouisme/archive/2012/02/06/2339470.html本文讲解怎么在xcode4的workspace里配置工程联编,但这里并非惟一方法。创建workspace,添加一个IOS的lib工程叫做libA,再添加一个IOS的lib工程叫做libB,再添加一个app工程叫做appC.场景:appC工程需要

2014-03-26 09:04:58 1984

转载 使用xcode4 workspace 多个project协同工作

转自:http://erlangprogram.com/use-xcode4-workspace一般的某个应用单独新建一个 project 就可以了,然后把所有的程序文件都放在里面,这个可以满足大部分普通的需求,但是有时候,项目有可能要使用其他的项目文件,或者引入其他的静态库文件,这个时候 workspace 就派上用场了,workspace 即可以单独管理多个项目,又可以通过配置,让各个

2014-03-25 09:45:53 13899

原创 xcode 运行出现类似-[__NSCFString objectForKey:]: unrecognized selector sent to instance的调试方法

1.在程序中任意的.m文件(最好在特定的文件中,如为解决此类问题单独建一个统一的.m文件)中添加类似以下代码@implementation NSString (NSStringDebug)-(void) objectForKey:(NSString*) str  {    assert(NO);// 这里的assert(NO)是必须的,不允许该函数正常运行

2014-03-20 17:39:51 12739

转载 Xcode4/iOS5调试UncaughtException崩溃First throw call stack不打印方法名的解决方案

转自:http://blog.csdn.net/onlyou930/article/details/7894874最近连接iOS5.0.1真机调试的的时候,发现UncaughtException导致crash之后*** First throw call stack:后面没有打印可读的调用堆栈,以前崩溃之后会显示详细的调用的方法名等信息,但是现在都是一堆内存地址0x…..0x…..。

2014-03-17 15:12:47 824

原创 N个数字每X个数字组成一组,求组数

if (N >= X) {count = N * (N-1) * (N -2)...*(N-(X-1))count /= 1* 2...*X}

2014-03-04 16:24:50 975

原创 生成带文本的UIImage

-(UIImage *)createTextImg:(NSString *)imgName text:(NSString *)text1{ UIImage* img = [UIImage imageNamed:imgName]; NSAssert(img, @""); int w = img.size.width; int h = img.size.hei

2014-01-23 10:41:02 1605 1

原创 Linux创建环境变量(Mac OS)

1./etc/profileif [ -x /usr/libexec/path_helper ]; then eval `/usr/libexec/path_helper -s`fiif [ "${BASH-no}" != "no" ]; then [ -r /etc/bashrc ] && . /etc/bashrcfi# 加载自已的环境变量if [ -f ~/.bashr

2014-01-17 15:35:47 1006

原创 为UIView绘制单边的boder

CALayer *TopBorder = [CALayer layer];TopBorder.frame = CGRectMake(0.0f, 0.0f, myview.frame.size.width, 3.0f);TopBorder.backgroundColor = [UIColor redColor].CGColor;[myview.layer addSublayer:TopBord

2013-11-21 10:09:05 4912

转载 在BAE上搭建PHPWind社区的方法

转自:http://zhan.renren.com/longmensoft?from=post&ggid=3602888498043096197&checked=true如果你是好奇踏入这个帖子的,我就先介绍一下什么是BAE和PHPwind百度应用引擎(BAE)是百度推出的网络应用开发平台。简单说,它可以当做一个网站的服务器,只不过功能没有一般意义上的网站服务器全面,但如果不是有特

2013-11-14 00:10:23 1950

转载 iphone调用系统电话、浏览器、地图、邮件等

转自:http://helloios.diandian.com/post/2011-10-31/6387190openURL的使用方法:[[UIApplication sharedApplication] openURL:[NSURL URLWithString:appString]];其中系统的appString有:1.Map http://maps.google.com

2013-10-31 10:35:00 759

原创 移动UIView的坐标

view.frame = CGRectOffset(view.frame,0, -128);

2013-10-30 10:29:50 825

转载 UIView大小缩放的动画效果函数

转自:http://blog.sina.com.cn/s/blog_9bf272cf01015i9b.htmlUIView *singleMapView = [[UIView alloc] initWithFrame:CGRectMake(10, 150, 300, 250)]; singleMapView.backgrou

2013-10-18 15:15:43 18748

转载 iOS学习:UILabel和sizeWithFont方法,可用于动态调整UILabel大小

转自:http://www.cnblogs.com/zouzf/archive/2012/11/21/2780040.html- (void)viewDidLoad{ [super viewDidLoad]; // Do any additional setup after loading the view, typically from a nib.

2013-10-18 14:14:46 3744

转载 12个优秀的开源UML工具

http://www.iteye.com/news/11216-12-best-opensource-uml-tool

2013-09-27 15:08:21 1038

转载 UML类图几种关系的总结

UML类图,描述对象和类之间相互关系的方式包括:依赖(Dependency),关联(Association),聚合(Aggregation),组合(Composition),泛化(Generalization),实现(Realization)等。依赖(Dependency):元素A的变化会影响元素B,但反之不成立,那么B和A的关系是依赖关系,B依赖A;uml中用带箭头的虚线表示Depend

2013-09-27 11:38:57 748

原创 IOS检测版本更新

.h//// myCheckUpdate.h// //// Created by X on 13-9-25.////#import // 检查更新@interface myCheckUpdate : NSObject +(void) check;@end.m//// myCheckUpdate.m// //// Created

2013-09-25 16:18:43 2966 1

原创 IOS获取当前App的信息

NSDictionary *dicInfo = [[NSBundlemainBundle] infoDictionary];NSLog(@"App Info: %@", [dicInfodebugDescription]);

2013-09-25 14:42:33 1911

转载 对软件开发有利的5个敏捷编程方法

http://www.csdn.net/article/2013-09-24/2817034-five-ways-agile-programming-benefits-software-development

2013-09-25 13:39:51 1058

转载 iOS Objective-C 與 PHP DES 加解密演算法實作

原文:http://blog.toright.com/archives/2657在使用 php-mcrypt 函式庫進行 DES 加解密時,常常會碰到在其他平台無法正確解密資料>,是因為 PHP Mcrypt Library 沒有提供將明文訊息轉換為標準 PKCS#7 的格式 (定義在 RFC 5652) 所造成。以下程式碼說明使用 PHP mcrypt_encrypt function 依據

2013-09-25 12:51:11 3895

原创 objective-c检测网络状态

Reachability *r = [Reachability reachabilityWithHostName:@"www.apple.com"]; switch ([r currentReachabilityStatus]) { case NotReachable:// 没有网络连接 result=nil; break;

2013-09-24 15:27:00 3184 1

转载 phpMyAdmin简明安装教程

原文:http://faq.comsenz.com/viewnews-484phpMyAdmin 就是一种 MySQL 数据库的管理工具,安装该工具后,即可以通过 web 形式直接管理 MySQL 数据,而不需要通过执行系统命令来管理,非常适合对数据库操作命令不熟悉的数据库管理者,下面详细说明该工具的安装方法。一、下载先到互联网上下载 phpMyAdmin,也可以到 php

2013-09-24 09:18:17 787

原创 批处理获得文件大小

@echo offsetlocal enabledelayedexpansionfor /f "delims=" %%i in ('dir /a-d /b *.*') do ( echo %%i:文件大小=%%~zi字节&echo.)pause

2013-09-23 11:22:32 9703

原创 批处理迭代目录

for /f %%i in ('dir /b /a "dir\*.png"') do ( echo %%i )

2013-09-23 11:18:27 1085

原创 批处理读取文件

for /f %%i in (file.txt) do ( echo %%i )

2013-09-23 11:15:33 1157

转载 精益化运营:10款移动统计分析工具推荐

http://www.csdn.net/article/2013-09-04/2816819-mobile-analytics-tools

2013-09-18 17:07:57 653

转载 雪中送炭:十大前沿移动应用开发工具

http://www.csdn.net/article/2013-09-05/2816839-10-cutting-edge-mobile-development-tools

2013-09-18 16:57:35 659

转载 跨平台的加密算法XXTEA的封装

原文:http://www.cnblogs.com/pure/archive/2012/11/24/2786647.htmlXXTEA算法的结构非常简单,只需要执行加法、异或和寄存的硬件即可,且软件实现的代码非常短小,具有可移植性。维基百科地址:http://en.wikipedia.org/wiki/XXTEAXXTEA可对连续内存数据进行方便快速的加密解密,且比较安全,

2013-09-18 12:42:04 1738

转载 利用TEA算法进行数据加密

http://www.cnblogs.com/pengyingh/articles/2536864.htmlhttp://blog.chukong-inc.com/index.php/2012/02/14/利用tea算法进行数据加密/TEA(Tiny Encryption Algorithm)是一种小型的对称加密解密算法,最初是由剑桥计算机实验室的 David Wheeler

2013-09-18 10:12:45 1731

转载 10款免费且开源的项目管理工具

http://www.csdn.net/article/2013-09-13/2816926-free-project-management-tools

2013-09-18 00:07:41 2562 1

转载 iOS开发者必备:九大设计类工具

http://www.csdn.net/article/2013-09-10/2816892-iOS-dev-tools-design

2013-09-14 12:49:02 626

Xcode OpenGL ES模板

在xcode上安装 OpenGL ES模板,此模板不是Apple提供的模板。你可以解压到下面目录来安装它: /Developer/Platforms/iPhoneOS.platform/Developer/Library/Xcode/Project Templates/Application/

2015-12-25

ImageMagick图片批量处理

Version: ImageMagick 6.7.6-7 2012-04-20 Q16 http://www.imagemagick.org Copyright: Copyright (C) 1999-2012 ImageMagick Studio LLC Features: OpenMP Usage: convert.exe [options ...] file [ [options ...] file ...] [options ...] file Image Settings: -adjoin join images into a single multi-image file -affine matrix affine transform matrix -alpha option activate, deactivate, reset, or set the alpha channel -antialias remove pixel-aliasing -authenticate password decipher image with this password -attenuate value lessen (or intensify) when adding noise to an image -background color background color -bias value add bias when convolving an image -black-point-compensation use black point compensation -blue-primary point chromaticity blue primary point -bordercolor color border color -caption string assign a caption to an image -channel type apply option to select image channels -colors value preferred number of colors in the image -colorspace type alternate image colorspace -comment string annotate image with comment -compose operator set image composite operator -compress type type of pixel compression when writing the image -define format:option define one or more image format options -delay value display the next image after pausing -density geometry horizontal and vertical density of the image -depth value image depth -direction type render text right-to-left or left-to-right -display server get image or font from this X server -dispose method layer disposal method -dither method apply error diffusion to image -encoding type text encoding type -endian type endianness (MSB or LSB) of the image -family name render text with this font family -fill color color to use when filling a graphic primitive -filter type use this filter when resizing an image -font name render text with this font -format "string" output formatted image characteristics -fuzz distance colors within this distance are considered equal -gravity type horizontal and vertical text placement -green-primary point chromaticity green primary point -intent type type of rendering intent when managing the image color -interlace type type of image interlacing scheme -interline-spacing value set the space between two text lines -interpolate method pixel color interpolation method -interword-spacing value set the space between two words -kerning value set the space between two letters -label string assign a label to an image -limit type value pixel cache resource limit -loop iterations add Netscape loop extension to your GIF animation -mask filename associate a mask with the image -mattecolor color frame color -monitor monitor progress -orient type image orientation -page geometry size and location of an image canvas (setting) -ping efficiently determine image attributes -pointsize value font point size -precision value maximum number of significant digits to print -preview type image preview type -quality value JPEG/MIFF/PNG compression level -quiet suppress all warning messages -red-primary point chromaticity red primary point -regard-warnings pay attention to warning messages -remap filename transform image colors to match this set of colors -respect-parentheses settings remain in effect until parenthesis boundary -sampling-factor geometry horizontal and vertical sampling factor -scene value image scene number -seed value seed a new sequence of pseudo-random numbers -size geometry width and height of image -stretch type render text with this font stretch -stroke color graphic primitive stroke color -strokewidth value graphic primitive stroke width -style type render text with this font style -synchronize synchronize image to storage device -taint declare the image as modified -texture filename name of texture to tile onto the image background -tile-offset geometry tile offset -treedepth value color tree depth -transparent-color color transparent color -undercolor color annotation bounding box color -units type the units of image resolution -verbose print detailed information about the image -view FlashPix viewing transforms -virtual-pixel method virtual pixel access method -weight type render text with this font weight -white-point point chromaticity white point Image Operators: -adaptive-blur geometry adaptively blur pixels; decrease effect near edges -adaptive-resize geometry adaptively resize image using 'mesh' interpolation -adaptive-sharpen geometry adaptively sharpen pixels; increase effect near edges -alpha option on, activate, off, deactivate, set, opaque, copy transparent, extract, background, or shape -annotate geometry text annotate the image with text -auto-gamma automagically adjust gamma level of image -auto-level automagically adjust color levels of image -auto-orient automagically orient (rotate) image -bench iterations measure performance -black-threshold value force all pixels below the threshold into black -blue-shift factor simulate a scene at nighttime in the moonlight -blur geometry reduce image noise and reduce detail levels -border geometry surround image with a border of color -bordercolor color border color -brightness-contrast geometry improve brightness / contrast of the image -cdl filename color correct with a color decision list -charcoal radius simulate a charcoal drawing -chop geometry remove pixels from the image interior -clamp restrict pixel range from 0 to the quantum depth -clip clip along the first path from the 8BIM profile -clip-mask filename associate a clip mask with the image -clip-path id clip along a named path from the 8BIM profile -colorize value colorize the image with the fill color -color-matrix matrix apply color correction to the image -contrast enhance or reduce the image contrast -contrast-stretch geometry improve contrast by `stretching' the intensity range -convolve coefficients apply a convolution kernel to the image -cycle amount cycle the image colormap -decipher filename convert cipher pixels to plain pixels -deskew threshold straighten an image -despeckle reduce the speckles within an image -distort method args distort images according to given method ad args -draw string annotate the image with a graphic primitive -edge radius apply a filter to detect edges in the image -encipher filename convert plain pixels to cipher pixels -emboss radius emboss an image -enhance apply a digital filter to enhance a noisy image -equalize perform histogram equalization to an image -evaluate operator value evaluate an arithmetic, relational, or logical expression -extent geometry set the image size -extract geometry extract area from image -fft implements the discrete Fourier transform (DFT) -flip flip image vertically -floodfill geometry color floodfill the image with color -flop flop image horizontally -frame geometry surround image with an ornamental border -function name parameters apply function over image values -gamma value level of gamma correction -gaussian-blur geometry reduce image noise and reduce detail levels -geometry geometry preferred size or location of the image -identify identify the format and characteristics of the image -ift implements the inverse discrete Fourier transform (DFT) -implode amount implode image pixels about the center -lat geometry local adaptive thresholding -layers method optimize, merge, or compare image layers -level value adjust the level of image contrast -level-colors color,color level image with the given colors -linear-stretch geometry improve contrast by `stretching with saturation' -liquid-rescale geometry rescale image with seam-carving -median geometry apply a median filter to the image -mode geometry make each pixel the 'predominant color' of the neighborhood -modulate value vary the brightness, saturation, and hue -monochrome transform image to black and white -morphology method kernel apply a morphology method to the image -motion-blur geometry simulate motion blur -negate replace every pixel with its complementary color -noise geometry add or reduce noise in an image -normalize transform image to span the full range of colors -opaque color change this color to the fill color -ordered-dither NxN add a noise pattern to the image with specific amplitudes -paint radius simulate an oil painting -polaroid angle simulate a Polaroid picture -posterize levels reduce the image to a limited number of color levels -profile filename add, delete, or apply an image profile -quantize colorspace reduce colors in this colorspace -radial-blur angle radial blur the image -raise value lighten/darken image edges to create a 3-D effect -random-threshold low,high random threshold the image -region geometry apply options to a portion of the image -render render vector graphics -repage geometry size and location of an image canvas -resample geometry change the resolution of an image -resize geometry resize the image -roll geometry roll an image vertically or horizontally -rotate degrees apply Paeth rotation to the image -sample geometry scale image with pixel sampling -scale geometry scale the image -segment values segment an image -selective-blur geometry selectively blur pixels within a contrast threshold -sepia-tone threshold simulate a sepia-toned photo -set property value set an image property -shade degrees shade the image using a distant light source -shadow geometry simulate an image shadow -sharpen geometry sharpen the image -shave geometry shave pixels from the image edges -shear geometry slide one edge of the image along the X or Y axis -sigmoidal-contrast geometry increase the contrast without saturating highlights or shadows -sketch geometry simulate a pencil sketch -solarize threshold negate all pixels above the threshold level -sparse-color method args fill in a image based on a few color points -splice geometry splice the background color into the image -spread radius displace image pixels by a random amount -statistic type geometry replace each pixel with corresponding statistic from the neighborhood -strip strip image of all profiles and comments -swirl degrees swirl image pixels about the center -threshold value threshold the image -thumbnail geometry create a thumbnail of the image -tile filename tile image when filling a graphic primitive -tint value tint the image with the fill color -transform affine transform image -transparent color make this color transparent within the image -transpose flip image vertically and rotate 90 degrees -transverse flop image horizontally and rotate 270 degrees -trim trim image edges -type type image type -unique-colors discard all but one of any pixel color -unsharp geometry sharpen the image -vignette geometry soften the edges of the image in vignette style -wave geometry alter an image along a sine wave -white-threshold value force all pixels above the threshold into white Image Sequence Operators: -append append an image sequence -clut apply a color lookup table to the image -coalesce merge a sequence of images -combine combine a sequence of images -composite composite image -crop geometry cut out a rectangular region of the image -deconstruct break down an image sequence into constituent parts -evaluate-sequence operator evaluate an arithmetic, relational, or logical expression -flatten flatten a sequence of images -fx expression apply mathematical expression to an image channel(s) -hald-clut apply a Hald color lookup table to the image -morph value morph an image sequence -mosaic create a mosaic from an image sequence -print string interpret string and print to console -process arguments process the image with a custom image filter -separate separate an image channel into a grayscale image -smush geometry smush an image sequence together -write filename write images to this file Image Stack Operators: -clone indexes clone an image -delete indexes delete the image from the image sequence -duplicate count,indexes duplicate an image one or more times -insert index insert last image into the image sequence -reverse reverse image sequence -swap indexes swap two images in the image sequence Miscellaneous Options: -debug events display copious debugging information -help print program options -list type print a list of supported option arguments -log format format of debugging information -version print version information By default, the image format of `file' is determined by its magic number. To specify a particular image format, precede the filename with an image format name and a colon (i.e. ps:image) or specify the image type as the filename suffix (i.e. image.ps). Specify 'file' as '-' for standard input or output.

2013-02-27

cocos2d-x粒子编辑器源码

cocos2d-x粒子编辑器源码

2013-02-27

AnimatePacker 2.0

序列帧动画编辑器 AnimatePacker 2.0 支持mac & win32

2013-02-27

Win32 控制台中使用 MFC.zip

 在Virtual C++ 6.0创建的Win32 Application 和 Win32 Console Application 中使用 MFC 是可能的,主要的困难在于绕过MFC提供的WinMain函数。下面我提供一个方法以供参考:

2012-06-02

在控制台中使用MFC.zip

 在Virtual C++ 6.0创建的Win32 Application 和 Win32 Console Application 中使用 MFC 是可能的,主要的困难在于绕过MFC提供的WinMain函数。下面我提供一个方法以供参考:

2012-06-02

iphone加速器_demo_倾斜

I need to use the functionality of an accelerometer in my iphone game. I just have to move an image by tilting the device. However most videos on youtube just show the tilt feature that is somehow inverted and forget to include the calibration. I want the user to calibrate their device to whatever position they're in. Does anyone know how I should get started on this?

2012-04-11

空空如也

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

TA关注的人

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