摘要:
首先在viewdidload中添加UIlable并且把其设为隐藏然后在点击按钮后,让其弹出移动后消失//点击按钮后:#pragma mark 点击关注按钮- (IBAction)guanzhuBtnClick:(id)sender { self.myAlertLabel=[[UILabel alloc] initWithFrame:CGRectMake(275, 85, 15, 15)]; //起始高度设的大点 self.myAlertLabel.text=@"+"; self.myAlertLabel.backgroundColor=[UIColor clea... 阅读全文
随笔档案-2013年10月
IOS研究院之打开照相机与本地相册选择图片(六)
2013-10-22 20:23 by Lves Li, 238 阅读, 收藏,
摘要:
原创文章如需转载请注明:转载自雨松MOMO程序研究院本文链接地址:IOS研究院之打开照相机与本地相册选择图片(六)Hello 大家好 IOS的文章好久都木有更新了,今天更新一篇哈。 这篇文章主要学习如何在IOS程序中打开照相机与本地相册并且选择一张图片。还是老样子MOMO写了一个简单的测试程序,如下图所示 在本地相册中选择一张图片后,我们将他拷贝至沙盒当中,在客户端中将它的缩略图放在按钮旁边,这个结构其实和新浪微薄中选择图片后的效果一样。最终点击发送将按钮将图片2进制图片上传服务器。下面我们仔细学习具体的细节。创建一个空的IOS项目,接着在创建一个ViewController。AppDeleg 阅读全文
django 上传文件
2013-10-20 16:29 by Lves Li, 501 阅读, 收藏,
摘要:
今天一大早爬起来就开始查找django 上传文件的例子。网上的例子不是写的太简单,就是不全面。现在终于自己解决了,并写了个小例子.demo 介绍:使用mysql数据库,把每次上传的文件按照日期分类存放,并且把文件路径上传到mysql数据库中。项目目录如下:下面上代码:myproject/urls.py: 用来存放整个项目的路径# -*- coding: utf-8 -*-from django.conf.urls import patterns, include, urlfrom django.conf import settingsfrom django.conf.urls.static i 阅读全文
openmp 并行求完数
2013-10-17 19:05 by Lves Li, 240 阅读, 收藏,
摘要:
// GetWanShu.cpp : 定义控制台应用程序的入口点。//#include "stdafx.h"#include "omp.h"#include #include "time.h"//函数声明void getWanShuBySection();void getWanShu();void getWanShuByReduction();int _tmain(int argc, _TCHAR* argv[]){ //串行实现求完数 clock_t start_LiXingLe=clock(); getWanShu(); cloc 阅读全文
mac 安装PIL
2013-10-16 17:02 by Lves Li, 200 阅读, 收藏,
摘要:
PIL是python Image library在mac终端中通过以下命令安装:# downloadcurl -O -L http://effbot.org/media/downloads/Imaging-1.1.7.tar.gz# extracttar -xzf Imaging-1.1.7.tar.gzcd Imaging-1.1.7# build and installpython setup.py buildsudo python setup.py install# or install it for just you without requiring admin permission 阅读全文
IOS学习之路二十四(custom 漂亮的UIColor)
2013-10-06 16:41 by Lves Li, 984 阅读, 收藏,
摘要:
下面简单列举一下漂亮的和颜色,大家也可以自己依次试一试选出自己喜欢的。转载请注明本文转自:http://blog.csdn.net/wildcatlele/article/details/12350431新浪微博:http://weibo.com/u/3202802157[plain]view plaincopyprint?+(UIColor*)infoBlueColor{return[UIColorcolorWithRed:47/255.0fgreen:112/255.0fblue:225/255.0falpha:1.0];}+(UIColor*)successColor{return[UI 阅读全文
浙公网安备 33010602011771号