`
2014马年
  • 浏览: 118656 次
  • 性别: Icon_minigender_1
  • 来自: 晋中
社区版块
存档分类
最新评论
文章列表
其实很简单的一条命令     jarsigner -verbose -keystore /xxx/release.keystore -signedjar /xxx/123.signed.apk /xxx/unsign.apk xxx[签名文件里别名]    如果你是JDK7的话,就用下面的命令(需要指定-sigalg and -digestalg)):     jarsigner -verbose -sigalg SHA1withRSA -digestalg SHA1 -keystore my-release-key.keystore -signedjar /xx ...
match against   Full-Text 在5.6之前 只能用于 MyISAM ,5.6开始 可用于InnoDB     id name 1 张三 2 张四 3 张五 4 李三 5 李四 6 李五 1. Boolead Full-text Searches   说明: + AND - AND NOT space or   ### select * from table_xxx_user where match(name) against(‘+张 -四 -五’  IN BOOLEAN MODE)   结果: 1 张三   ### se ...
    brew install unixodbc brew install freetds --with-unixodbc   安装后的libtdsodbc.so 的目录: /usr/local/Cellar/freetds/1.00.9/lib/libtdsodbc.so   安装pyodbc pip install pyodbc    完成   参考: https://gist.github.com/Bouke/10454272
来源:   http://stackoverflow.com/a/27057168/2967461     class MyView: UIView { override init (frame : CGRect) { super.init(frame : frame) addBehavior() } convenience init () { self.init(frame:CGRect.zero) } required init(coder aDecoder: NSCo ...
// // ViewController.swift // AutolayoutScrollViewInCode // // Created by 张星宇 on 15/12/21. // Copyright © 2015年 张星宇. All rights reserved. // import UIKit import SnapKit let ScreenWidth = UIScreen.mainScreen().bounds.width let ScreenHeight = UIScreen.mainScreen().bounds.height let ...
试过了 设置   hidesBottomBarWhenPushed   但是不行无效   直接设置    self.tabBarController?.tabBar.hidden  非常麻烦,有的显示,有的页面隐藏,担心忘记还原了   所有有了以下的方法:  
         @IBActionfunc password_keyboard_begin(sender: AnyObject) { //        let transform_up_100 = CGAffineTransformMakeTranslation(0, -150) //        UIView.beginAnimations(nil, context: nil) //        for one_subview in self.view.subviews{ //            one_subview.transform = transform_up_ ...
定义model的时候使用 id = models.AutoField(primary_key=True)
解决办法: 添加一个底部的view   let countdownBtn = UIButton.init(frame: CGRectMake(-10, 0, 62, 28)) let rightBackView = UIView.init(frame:CGRectMake(0, 0, 72, 28)) rightBackView.addSubview(countdownBtn) textFeild.rightView = rightBackView      
  转载:http://blog.csdn.net/gishero/article/details/44132245   import UIKit      class ViewController: UIViewController {  
问题解决地址:   http://stackoverflow.com/questions/26076054/changing-placeholder-text-color-with-swift   1.如下图,加入 _placeholderLabel.textColor     2.使用代码 textFld.attributedPlaceholder =NSAttributedString(string:"Test Data for place holder", attributes:[
取自 UIDevice.currentDevice().identifierForVendor?.UUIDString   这个值会在删除应用后改变,直接更新不会改变   模拟器上每次也不一样  
使用   pod install pod update --no-repo-update pod install --no-repo-update   pod repo remove master pod setup   rm -rf ~/.cocoapods; pod setup   就差放弃用pod,直接拷贝代码了   都没有用,翻了墙,才解决      
1.在storyboard里创建一个ViewController       2.写入如下代码   print("弹出登录框") let loginViewController = self.storyboard?.instantiateViewControllerWithIdentifier("login_view") as! LoginViewController presentViewController(loginViewController, anima ...

添加一个底部tab bar

    博客分类:
  • ios
1.拖入 storyboard 一个 view controller   2. 连接 tab bar controller 和新的 view controller ,选下面的选项   此时:       在添加一个 tab bar item 到新的viewcontroller   在这里选择 默认图片和 名称     运行效果     
Global site tag (gtag.js) - Google Analytics