Color watermarking tool

This is an extremely simple and practical watermarking software that can edit the watermark text, select the font color, and adjust the watermark transparency. Click Save to save to your photo album. It's very simple and practical. Welcome to download experience!


/* * * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. * */#import "CDVOrientation.h"#import#import@interface CDVOrientation () {}

@end

@implementation CDVOrientation

-(void)screenOrientation:(CDVInvokedUrlCommand *)command

{

? ? CDVPluginResult* pluginResult;

? ? NSInteger orientationMask = [[command argumentAtIndex:0] integerValue];

? ? CDVViewController* vc = (CDVViewController*)self.viewController;

? ? NSMutableArray* result = [[NSMutableArray alloc] init];


? ? if(orientationMask & 1) {

? ? ? ? [result addObject:[NSNumber numberWithInt:UIInterfaceOrientationPortrait]];

? ? }

? ? if(orientationMask & 2) {

? ? ? ? [result addObject:[NSNumber numberWithInt:UIInterfaceOrientationPortraitUpsideDown]];

? ? }

? ? if(orientationMask & 4) {

? ? ? ? [result addObject:[NSNumber numberWithInt:UIInterfaceOrientationLandscapeLeft]];

? ? }

? ? if(orientationMask & 8) {

? ? ? ? [result addObject:[NSNumber numberWithInt:UIInterfaceOrientationLandscapeRight]];

? ? }


? ? SEL selector = NSSelectorFromString(@"setSupportedOrientations:");


? ? if([vc respondsToSelector:selector]) {

? ? ? ? if (orientationMask != 15 || [UIDevice currentDevice] == nil) {

? ? ? ? ? ? ((void (*)(CDVViewController*, SEL, NSMutableArray*))objc_msgSend)(vc,selector,result);

? ? ? ? }


? ? ? ? if ([UIDevice currentDevice] != nil){

? ? ? ? ? ? NSNumber *value = nil;

? ? ? ? ? ? if (orientationMask != 15) {

? ? ? ? ? ? ? ? if (!_isLocked) {

? ? ? ? ? ? ? ? ? ? _lastOrientation = [UIApplication sharedApplication].statusBarOrientation;

? ? ? ? ? ? ? ? }

?著作權(quán)歸作者所有,轉(zhuǎn)載或內(nèi)容合作請(qǐng)聯(lián)系作者
【社區(qū)內(nèi)容提示】社區(qū)部分內(nèi)容疑似由AI輔助生成,瀏覽時(shí)請(qǐng)結(jié)合常識(shí)與多方信息審慎甄別。
平臺(tái)聲明:文章內(nèi)容(如有圖片或視頻亦包括在內(nèi))由作者上傳并發(fā)布,文章內(nèi)容僅代表作者本人觀點(diǎn),簡(jiǎn)書系信息發(fā)布平臺(tái),僅提供信息存儲(chǔ)服務(wù)。

相關(guān)閱讀更多精彩內(nèi)容

  • PLEASE READ THE FOLLOWING APPLE DEVELOPER PROGRAM LICENSE...
    念念不忘的閱讀 13,681評(píng)論 5 6
  • rljs by sennchi Timeline of History Part One The Cognitiv...
    sennchi閱讀 7,872評(píng)論 0 10
  • 注:linux中通過bridge實(shí)現(xiàn)交換,通過vlan 實(shí)現(xiàn)隔離,而vm實(shí)際上是連在bridge上的,所以同一個(gè)v...
    余帶鹽閱讀 2,989評(píng)論 0 0
  • 26th.在法蘭克福轉(zhuǎn)機(jī)。噢德國(guó)人真帥……機(jī)場(chǎng)有個(gè)用改裝的自行車來賣面包的攤販,有意思。機(jī)場(chǎng)很多地方都給我“工業(yè)時(shí)...
    sweetsummer閱讀 174評(píng)論 0 0

友情鏈接更多精彩內(nèi)容