This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- (void)scrollViewDidScrollToTop:(UIScrollView *)scrollView { | |
self.navigationController.navigationBarHidden = NO; | |
} | |
-(void)opaqueStatusBar:(UIScrollView *)scrollView | |
{ | |
scrollView.delegate = self; | |
UIView *statusBarBg = [self.navigationController.view viewWithTag:3000]; | |
if (statusBarBg == nil) | |
{ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
UIResponder *responder = self; | |
while(responder){ | |
if ([responder respondsToSelector: @selector(OpenURL:)]){ | |
[responder performSelector: @selector(OpenURL:) withObject: [NSURL URLWithString:url]]; | |
} | |
responder = [responder nextResponder]; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
App Screenshots: | |
3 sizes are required for universal apps (iPhone and iPad) | |
- 5.5in screens: run simulator with "iPhone 6s+" and take screenshots (1242x2208) video=1080x1920 | |
- 6.5in screens: run simulator with "iPhone XR" and take screenshots (1242x2688) video=886x1920 | |
- 12.9in screens: run simulator with "iPad (2nd or 3d generation" and take screenshots (2048×2732) video=1200x1600 | |
App Preview videos: | |
1 - Record simulator video: xcrun simctl io booted recordVideo in.mp4 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if [ "$#" -eq 2 ] | |
then | |
mkdir $2 | |
ffmpeg -y -i $1 -vf scale=20x20 $2/[email protected] | |
ffmpeg -y -i $1 -vf scale=40x40 $2/[email protected] | |
ffmpeg -y -i $1 -vf scale=60x60 $2/[email protected] | |
ffmpeg -y -i $1 -vf scale=29x29 $2/[email protected] | |
ffmpeg -y -i $1 -vf scale=58x58 $2/[email protected] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#define OVERLAY_VIEW_TAG 298739 | |
-(void)showSpinner | |
{ | |
UIView *back = [[UIView alloc]initWithFrame:CGRectMake(0, 0, UIScreen.mainScreen.bounds.size.width, UIScreen.mainScreen.bounds.size.height)]; | |
back.backgroundColor = [[UIColor blackColor] colorWithAlphaComponent:0.6]; | |
back.tag = OVERLAY_VIEW_TAG; | |
[self.view addSubview:back]; | |
UIActivityIndicatorView *spinner = [[UIActivityIndicatorView alloc] initWithActivityIndicatorStyle:UIActivityIndicatorViewStyleWhiteLarge]; | |
spinner.center = back.center; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"hello": "Salut", | |
"common.copy_url": "Copier l'URL de la salle de chat", | |
"common.copy_succ_hint": "Copié dans le presse-papiers", | |
"com.room_card.join_btn": "Joindre", | |
"index": { | |
"faq_title": "FAQ", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import Foundation | |
import CoreMediaIO | |
let CMIOExtensionPropertyCustomPropertyData_just: CMIOExtensionProperty = CMIOExtensionProperty(rawValue: "4cc_just_glob_0000") | |
let CMIOExtensionPropertyCustomPropertyData_dust: CMIOExtensionProperty = CMIOExtensionProperty(rawValue: "4cc_dust_glob_0000") | |
... | |
class cameraStreamSource: NSObject, CMIOExtensionStreamSource { | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
override func viewDidLoad() { | |
super.viewDidLoad() | |
let text = """ | |
It is a long established fact that a reader will be distracted by the readable content of a page when looking at its layout. The point of using Lorem Ipsum is that it has a more-or-less normal distribution of letters, as opposed to using 'Content here, content here', making it look like readable English. Many desktop publishing packages and web page editors now use Lorem Ipsum as their default model text, and a search for 'lorem ipsum' will uncover many web sites still in their infancy. Various versions have evolved over the years, sometimes by accident, sometimes on purpose (injected humour and the like). | |
""" | |
let fontSize = 88.0 | |
let font = NSFont.systemFont(ofSize: fontSize) | |
let layer = makeScrollingTextLayer(text: text, width: 800, visibleLines: 3, font: font, timing: 0.2) | |
self.view.wantsLayer = true | |
self.view.layer?.addSublayer(layer) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if [ "$#" -eq 2 ] | |
then | |
mkdir $2 | |
ffmpeg -y -i $1 -vf scale=16x16 $2/[email protected] | |
ffmpeg -y -i $1 -vf scale=32x32 $2/[email protected] | |
ffmpeg -y -i $1 -vf scale=32x32 $2/[email protected] | |
ffmpeg -y -i $1 -vf scale=64x64 $2/[email protected] | |
ffmpeg -y -i $1 -vf scale=128x128 $2/[email protected] |
OlderNewer