hi,
I want to take large video input from the gallery and take in my app, I have a code that is deprecated, I have a video URL, anyone helps me to save this video's URL to another path.
I get the video URL by using a photo kit but I don't know how can I make a copy of this video and keep it in another path (my app).
before I use this code
[[NSFileManager defaultManager] createFileAtPath:path contents:nil attributes:nil];
NSOutputStream *outPutStream = [NSOutputStream outputStreamToFileAtPath:path append:YES];
[outPutStream open];
long long offset = 0;
long long bytesRead = 0;
NSError *error;
uint8_t * buffer = malloc(131072);
double ok = [assetRep size] ; //ok double 24011099
// id size = [assetRep size] ;
while (
offset < ok && [outPutStream hasSpaceAvailable]) {
bytesRead =
[assetRep
getBytes:buffer
fromOffset:offset
length:131072
error:&error
];
[outPutStream write:buffer maxLength:bytesRead];
offset = offset+bytesRead;
}
[outPutStream close];
free(buffer);
thanks
Post
Replies
Boosts
Views
Activity
hi,
i want to remove receigen file from build phase, when i remove my file its gave me these errors.
Undefined symbol: FABNetworkMaximumRetryCount
Undefined symbol: OBJCCLASS$AppsFlyerTracker
Undefined symbol: OBJCCLASS$TAGContainerOpener
Undefined symbol: OBJCCLASS$_TAGManager
any one suggest me how may i resolve these error
thanks
hi
apple reject my application and give these msg.
Your app uses public APIs in an unapproved manner, which does not comply with guideline 2.5.1 of the App Store Review Guidelines.
Specifically, we found that your app uses a decoy functionality to hide a user’s photos, which is not an appropriate use of the Photos API.
Since there is no accurate way of predicting how an API may be modified and what effects those modifications may have, Apple does not permit unapproved uses of public APIs in App Store apps.
Next Steps
Please revise your app to ensure that documented APIs are used in the manner prescribed by Apple.
If there are no alternatives for providing the functionality your app requires, you can use Feedback Assistant to submit an enhancement request.
anyone advice how to fix this rejection
thanks
hi
i want to deinit callkit delegate before the segue perform, i observe when i'm in next screen the calling kit object is still alive,,
please tell me how to destroy the callkit object or setdelegate to nil when i leave one screen to another
thanks
hi
apple reject my app and gave me this reason!
We noticed that your app requests the user’s consent to access the Bluetooth but does not clarify the use of the Bluetooth in the applicable purpose string!
i didn't use bluetooth in my project but i saw third party library use bluetooth
please tell me how may i remove bluetooth link to third party api
thanks
hi,
i want to remove coreblutooth framework from my project because third party library use my bluetooth, i didn't use bluetooth in my project but bluetooth permission alert is shown when application is launched,
when i run this "grep -r -a CoreBluetooth ProjectFolder" command in terminal its show
"/Pods/Google-Mobile-Ads-SDK/Frameworks/GoogleMobileAds.framework/Modules/module.modulemap:// link framework "CoreBluetooth" "
when i remove coreBluetooth framework from my project it's gave me three errors.
Undefined symbol: OBJCCLASS$ CBCentralManager in objective c
Undefined symbol: OBJCCLASS$CBUUID
Undefined symbol: _CBCentralManagerOptionShowPowerAlertKey
can anyone tell me how may solve these error. actually i want to remove bluetooth permission popup from my first screen.
due to popup apple reject my app.
Thanks
hi,
I didn't use Bluetooth in my app, but applications show me popup to allow Bluetooth, and if remove the Bluetooth permission in info.plist the app will crash.
the app didn't call any type of Bluetooth method.
i saw CoreBluetooth in project -> build setting -> linking -> CoreBluetooth, when i remove it i got an error.
please tell me how may I remove Bluetooth pop with my project because I don't have Bluetooth usage in my project,
thanks
hi,
i received this email after upload my app to the test-flight.
even i don't use APNS capabilities in my project. my previous build is approved by the apple although new build just contain ui changes.
ITMS90078: MISSING PUSH NOTIFICATION ENTITLEMENT Your app appears to register with the Apple Push Notification service, but the app
signature's entitlements do not include the 'aps-environment'
entitlement. If your app uses the Apple Push Notification service, make
sure your App ID is enabled for Push Notification in the Provisioning
Portal, and resubmit after signing your app with a Distribution
provisioning profile that includes the 'aps-environment' entitlement.
Xcode does not automatically copy the aps-environment entitlement from
provisioning profiles at build time. This behavior is intentional. To
use this entitlement, either enable Push Notifications in the project
editor's Capabilities pane, or manually add the entitlement to your
entitlements file.
please provide me solution.
thanks
hi,
my application is not uploading for the AppStore.
I close my app with a button click, but the app is not removed from the recent app when user exit the app it should be removed from recent app,
is there any way to remove my recent app through programmatically or MDM service?
thanks
hi,
i am creating screen test app where i check touch is screen working fine or not
when i start touch top of the screen to check my screen its notification screen is it possible to lock the notification screen so that user can check screen without showing the notification screen thanks
thanks
hi,
when my app is launch, the app is Calling a phone number by-using swift
I want to end the call when the call is status is connected/ or call is received
please tell me how can I do that.
Thanks
hi
how may I define to capture a picture with primary and secondary cameras separately, like if the iPhone has 3 back Cameras, I want to capture pictures by using top back the first camera?
thanks
hi,
I'm using the MDM server to install my app, its possible to get battery details through the MDM server.
or
is it possible to get battery details through programmatically?
please tell me how can be possible to get the battery details
Thanks
hi,
I'm installing my application from the third party service, it can be MDM server or other services/library,
I want to give all permission like GPS, Bluetooth before launching the app so that I'll not see any permission dialogue.
please give me a suggestion on how can I achieve this feature.
or
is there any other possibility to achieve this task.
Thanks
hi
I want to develop a project when the user pressed home button if the home button working fine so the user sees an alert that the home button is working fine.
please give me the advice to achieve this feature.
Thanks