Posts

Ứng dụng vẽ tranh trên appstore. || Drawing Color

Image
Tải và cài đặt ứng dụng vẽ tranh Drawing Color free cho bạn . - Ứng dụng drawing color bao gồm các chức năng + vẽ tranh + tô màu theo ảnh có sẵn + ghép các hình ảnh trong tranh. Link tải:  tới appstore now Một số hình ảnh : chúc các bạn vui vẻ với app drawing color nhé. drawing for kid , drawing pad, drawing desk , drawing color, draw , paint  , painting , kids

How to round UIIMage with CGContext

How to round UIIMage with  CGContext func roundedRectImageFromImage(image: UIImage ! ,radious: CGFloat ) -> UIImage !{              if (radious == 0.0 ){             return image;         }              if ( image != nil ) {                          let imageWidth: CGFloat = image. size . width ;             let imageHeight: CGFloat = image. size . height ;                          let rect: CGRect = CGRectMake ( 0.0 , 0.0 , imageWidth, imageHeight);             let window: UIWindow = UIApplication . sharedApplication (). windows [ 0 ] //[[[UIApplication sharedApplication] windows] objectAtIndex:0];           ...

Resize - Rotate - Move View or image view in swift

Resize - Rotate - Move View or image view in swift . import UIKit class ViewController: UIViewController {          var frameImageView: UIView !     var prevPoint: CGPoint !     var resizeView: UIView !     var rotateView: UIView !     var deltaAngle: Float !     var startTransform: CGAffineTransform !               override func viewDidLoad() {             super . viewDidLoad ()                  frameImageView = UIView (frame: CGRectMake ( 100 , 100 , 100 , 100 ));         frameImageView . backgroundColor = UIColor . yellowColor ();         self . view . addSubview ( frameImageView )                  let panMoveGesture: UIPanGestureRecognizer = UIPanGestureReco...

Cách vào Facebook hôm nay. (5/6/16 vào facebook không bị chặn)

Image
Hiện này có rất nhiều cách vào facebook khi bị chặn bởi các nhà mạng  , Sau đây mình hướng dẫn cách vào facebook bằng các dùng tunnelbear(fakeIp)  - tốc độ lướt web nhanh. 1. Các bạn vào trang chủ tại tunnelbear về . (Mac-Win-ios-android)  https://www.tunnelbear.com/download                                       sau khi tải xong các bạn cài lên máy tính cảu mình nhé. Và sẽ có giao diện sau.                                          Các bạn chọn cái đầu tiên và đăng ký 1 tài khoản cho mình : điền tên - email - pass Sau đó click Next rồi đợi một lúc sau đó vào mail confirm lại nhé.                                              ...

How to get textsize - width - height UILabel and UITextView in ios swift (lấy độ dài - rộng nội dung của textview và label trong ios swift)

How to get textsize - width - height UILabel and UITextView in ios swift  func (hàm lấy textsize UILabel)      func  textSize(textlabel:  UILabel !) -> CGSize {          let  max_width: CGFloat ! =  self . frame . width          return  textlabel. attributedText !. boundingRectWithSize (                      CGSizeMake (max_width,  CGFloat .max),                                             options: [ NSStringDrawingOptions .UsesLineFragmentOrigin,                                                                 NSStringDrawingOptions ...

Animation View In Swift (Tạo hiệu ưng cho view trong swift - di chuyển)

Image
Hướng dẫn tạo hiệu ứng cho một đối tượng giao diện trong swift (Animation in swift) Tạo project Vào file Main.storyboard Các bạn tạo 2 đối tượng : Đối tượng UIIMageView: Hiển thị ảnh (Hoặc đối tượng bạn muốn tạo hiệu ứng) Đối tượng UIButton : Chúng ta sẽ di chuyển đối tượng ảnh khi click vào button                                           3. Kéo thả từng đối tượng vào file viewController.swift    Chúng ta có 2 đối tượng được khai báo như hình vẽ     Đối tượng button khai báo theo sự kiện                                       Trong func btnStart(sender:AnyObject) Sử dụng hàm UIView.animatedWithDuration  để tạo hiệu ứng di chuyển theo thời gian      @IBAction func btnStart(sender: ...

swift ios : sử dụng UIAlert - thông báo trong swift

Image
Hướng dẫn sử dụng UIAlert trong swift 1. Tạo project:  Hướng đẫn : http://swiftiosswift.blogspot.com/2016/03/swift-tao-project-au-tien-bang-xcode.html 2. vào file ViewController  Chúng ta bắt đầu viết code 2.1 Thông báo với 1 button   @IBAction func alert(sender: UIButton ) {                  let alertController = UIAlertController (title: "Thông báo" , message: "Bạn có tin nh ắ n mới" , preferredStyle: UIAlertControllerStyle . Alert )         let ok = UIAlertAction (title: "ok" , style: . Default , handler: { (action) -> Void in             print ( "ok" )                      })         alertController. addAction (ok)                  self . presentViewController (alertController, animated: true , completion: ...

Tải các phiên bản Xcode 6 / 7 đuôi .dmg

Image
Tải các phiên bản Xcode Xcode6/ 7  file dmg Link :  https://developer.apple.com/downloads/ Trước khi các bạn tải thì các bạn phải đăng nhập tài khoản trước 1. Xcode 7 : 7.3       download 7.2.1    download 7.2       download 7.1.1    download 7.1       download 7          download 2. Xcode 6: 6.4      download 6.3.2   download 6.3.1   download 6.3      download 6.2      download 6.0.1   download

Swift - ios Tạo bộ đếm ngược thời gian NSTimer

Image
Bài này mình sẽ hướng dẫn các bạn tạo bộ đếm ngược thời gian bằng các sử dụng hình ảnh. Trong các ứng dụng game thì bộ công cụ đếm ngược thời gian rất hay được sử dụng. vậy làm thế nào để tạo một bộ đếm thời gian. trong bài trước mình đã hướng dẫn các bạn sử dung đối tượng NSTimer.    1. Trước khi bắt đầu các bạn tải cho mình bộ ảnh thời gian đếm ngược ở đây nhé. 2. sau khi tải xong các bạn copy nó  vào project :                         Sau đó mở project lên : chuột phải vào thư mục project sao đó chọn  "add file to project" thư mục bạn vừa copy vào "                                        3.  Chúng ta bắt đầu tạo bộ đêm thời gian 3.1 Bài trước mình hd sử dụng kéo thả  . hôm này mình sẽ chỉnh sử dụng code để tạo giao diện cho bộ đếm. và file "viewcontroller" khai...