Câu hỏi được gắn thẻ «ios»

iOS là hệ điều hành di động chạy trên Apple iPhone, iPod touch và iPad. Sử dụng thẻ này [ios] cho các câu hỏi liên quan đến lập trình trên nền tảng iOS. Sử dụng các thẻ liên quan [object-c] và [swift] cho các vấn đề cụ thể đối với các ngôn ngữ lập trình đó.




8
iPhone UIView Animation Thực hành tốt nhất
Điều gì được coi là thực hành tốt nhất để tạo hiệu ứng chuyển cảnh xem trên iPhone? Ví dụ, ViewTransitionsdự án mẫu từ apple sử dụng mã như: CATransition *applicationLoadViewIn = [CATransition animation]; [applicationLoadViewIn setDuration:1]; [applicationLoadViewIn setType:kCATransitionReveal]; [applicationLoadViewIn setTimingFunction:[CAMediaTimingFunction functionWithName:kCAMediaTimingFunctionEaseIn]]; [[myview layer] addAnimation:applicationLoadViewIn forKey:kCATransitionReveal]; nhưng cũng có những đoạn …

6
Thay đổi animate bộ điều khiển xem mà không sử dụng ngăn xếp điều khiển điều hướng, xem trước hoặc bộ điều khiển phương thức?
NavigationControllers có các ngăn xếp ViewContoder để quản lý và hạn chế chuyển đổi hình ảnh động. Việc thêm trình điều khiển chế độ xem dưới dạng chế độ xem phụ vào trình điều khiển chế độ xem hiện tại yêu cầu chuyển các sự kiện đến trình điều khiển …








17
Vòng lặp video với AVPloundation AVPlayer?
Có cách nào tương đối dễ dàng để lặp video trong AVFoundation không? Tôi đã tạo AVPlayer và AVPlayerLayer của mình như vậy: avPlayer = [[AVPlayer playerWithURL:videoUrl] retain]; avPlayerLayer = [[AVPlayerLayer playerLayerWithPlayer:avPlayer] retain]; avPlayerLayer.frame = contentView.layer.bounds; [contentView.layer addSublayer: avPlayerLayer]; và sau đó tôi phát video của mình với: [avPlayer play]; …


13
Tôi có thể thay đổi thuộc tính số nhân cho NSLayoutConstraint không?
Tôi đã tạo hai chế độ xem trong một giám sát và sau đó thêm các ràng buộc giữa các chế độ xem: _indicatorConstrainWidth = [NSLayoutConstraint constraintWithItem:self.view1 attribute:NSLayoutAttributeWidth relatedBy:NSLayoutRelationEqual toItem:self.view2 attribute:NSLayoutAttributeWidth multiplier:1.0f constant:0.0f]; [_indicatorConstrainWidth setPriority:UILayoutPriorityDefaultLow]; _indicatorConstrainHeight = [NSLayoutConstraint constraintWithItem:self.view1 attribute:NSLayoutAttributeHeight relatedBy:NSLayoutRelationEqual toItem:self.view2 attribute:NSLayoutAttributeHeight multiplier:1.0f constant:0.0f]; [_indicatorConstrainHeight setPriority:UILayoutPriorityDefaultLow]; [self addConstraint:_indicatorConstrainWidth]; [self …

Khi sử dụng trang web của chúng tôi, bạn xác nhận rằng bạn đã đọc và hiểu Chính sách cookieChính sách bảo mật của chúng tôi.
Licensed under cc by-sa 3.0 with attribution required.