Is there any tutorial to learn Swift by comparing Objective-C. Tutorial should contain both Objective-C and Swift code.
Post
Replies
Boosts
Views
Activity
Is there a way to identify whether UIView hides/overlaps another UIView by checking points/pixels?
My question about the new privacy policy -> https://developer.apple.com/app-store/app-privacy-details/
My mobile app collects app location and customer email address and pass those information to the back end for the process. Since I don’t use those data for tracking purpose , I wanted to know whether I need to disclose those datatypes under privacy section or can be skipped if it's optional.
I implemented AVPlayerViewControllerDelegate to know when the Player enters or exits full screen mode. This delegate got introduced in iOS 12 and it works fine with iOS 12 and iOS 13.I added two workarounds for older versions.#1: Check whether viewcontroller is presenting any controller in viewWillLayOutSubViews#2: Check the AVPlayer overlay view frame in viewWillLayOutSubVies/viewDidLayOutSubViews.Those two workaround works fine in some versions but not in all the OS versions prior to 12.Did anyone have any solution to handle this issue?
I got an email from Appstore saying starting June 30 all the apps must be built with iOS 13 and launch storyboard must be used. Is this applicable only for app updates or existing apps will be removed from Store if developer don't update the app.
I will have to call openURL method twice which is not possible. Here is the scenarioI have to open the web page in safari from native app and at the same time I have to append some base 64 string to another http url and will have to call that URL to update the web page with the appended base 64 response.If we can call openURL twice then It would be easy and simple but unfortunately we can't call openURL twice back to back.Please let me know if there is any other solution available
As per WWDC 2019, app should support/have following features in order to submit the app to Appstore starting April 2020.Launch Storyboards.Support any size.Support Split Screen Multitasking(iPad)Is this still true? I didn't receive any email from developer support regarding this. If its true, will Apple remove the app from appstore app doesn't support above features?
I have declared an mutablearray and the count should not exceed 100. If some one calls addObject method to add an item to that array when the count is 100 then that method call should not be executed until someone removes an item so that count will go down below 100. Can we use semaphore or group dispatch for signalling or mutex/NSLock is recommended.- (void)viewDidLoad { [super viewDidLoad]; self.array = [[NSMutableArray alloc] initWithCapacity:100]; semaphore = dispatch_semaphore_create(0); [self addObject:@1]; [self addObject:@2]; [self addObject:@3]; [self addObject:@4]; . . . [self addObject:@100]; [self addObject:@101]; [self removeObjectAtIndex:1];}- (void)addObject:(id)object{ dispatch_async(dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_DEFAULT, 0), ^{ [self.array addObject:object]; if([self.array count] == 100){ dispatch_semaphore_wait(semaphore, DISPATCH_TIME_FOREVER); } });}- (void)removeObjectAtIndex:(NSInteger)index{ dispatch_async(dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_DEFAULT, 0), ^{ [self.array removeObjectAtIndex:index]; if([self.array count]<100){ dispatch_semaphore_signal(semaphore); } });}
I have two account, one developer account and one developer enterprise account. I believe that Apple wont allow to register same bundle id in two different accounts. So we have to slighty modify the bundle identifier if we want to distribute via enterprise account. Is there a way to change the bundle identifier via command line like xcodebuild so that we can change while building the app which will be a part of our continous integration.
Hi,I have an Xcode project with multiple targets. I added a few custom frameworks to all the targets which increase the IPA file size. Actually, a few targets don't need to have these custom framework.I know we can exclude these frameworks by removing them from "Build Phases->Link Binaries With Libraries" for the particular target, but I am exploring to see whether these can be achieved by having a script so that we don't have to remove/add them manually whenever required.I have a custom plist file for each target which tells whether these frameworks are needed. Is there any command available to remove/strip the framework from the target while building the app so that I can write a script by referring the plist value.