Category "objective-c"

The provided registration token is not registered

I'm trying to send push notification for iOS via Google cloud functions but it returns error that The provided registration token is not registered. But I've ch

iOS - Make WhatsApp voice/video call programmatically from my application

I have a requirement to make WhatsApp calls from my application. When I click the mobile number in my app then it should redirect to WhatsApp and initiate voice

Firebase Deep Link Web URL query is empty - iOS

I have a problem receiving Firebase Dynamic Links with the new custom URLs. I created one "abc0.page.link", I set up everything to create it in code from the ap

Move to new view controller after successful login

I am experimenting with developing my first app. I need some help on moving from one view controller to the next after a successful login. I've looked up countl

How to setup physical based rendering in SceneKit from code?

I want to present some scene with PBR. I created metalness and roughness textures and want to apply it to the mesh. When I try to do it in Xcode - everything is

Add vibration the background for local notifications

I'm adding a video chat to my app and use PushKit to get a pushNotification when the app is in the background. I Can't use the CallKit for video as it mess up t

Strange behavior with cursor position while deleting with libPhoneNumber-iOS

I using library libPhoneNumber-iOS for formatting phone numbers in my app. When I deleting text from the end of the text field, all works fine, but if the cu

Round only 2 corners of a UIView in custom UITableViewCell - iOS

I have a UIView in a custom UITableViewCell and I want to round just bottom Left and Right corners of that view. I'm doing the following, but it's not working:

I want to move placeholder text while typing the text in Textfield

I used the following code UITextField *email =[[UITextField alloc]initWithFrame:CGRectMake(48, 330, 330, 50)]; UITextField *password =[[UITextField alloc]initWi

Cannot execute method in an NSPanel from a separate NSWindow in Objective-C

I have a MacOS Objective-C project with a parent NSWindow and an NSPanel containing a TableView whose delegate and data source is a class called TableController

UICollectionView display 3 items per row

I have a UICollectionView created from storyboard, I want to have 3 items per row in the view. I managed to do that using the following: - (CGSize)collect

Why SCNPhysicsBody resets position when set eulerAngles?

I'm trying to use SceneKit to develop a game for tvOS, and I'm having an issue. When I set the node's eulerAngle before apply an impulse to the physicsBody the

UIAlertController Unable to satisfy constraints

I am converting all my UIActionSheet and UIAlertView with UIAlertController. My problem is when I try to present a UIAlertController of style ActionSheet. Here

How to remove the top and bottom padding of UIButton, when create it using auto layout?

When create UIButton with auto layout, the intrinsicContentSize always contain different top/bottom padding according to different text font size. I try to set

SceneKit : how to get distance between two SCNNode ? (ObjC and Swift)

I wonder how to get distance between two SCNNode (ObjC and Swift) Thanks

auto layout modify multiplier of constraint programmatically

How can I modify the multiplier of a constraint programmatically? I have set the following: [self.view addConstraint:[NSLayoutConstraint constraintWithItem:_bu

Build error integrating Clevertap to a Reactnative Application

I'm trying to integrate clevertap with native react and when I include "use_frameworks!" in cocoa pods to be able to use #import <CleverTapReact / CleverTa

Keychain access control from the app with different names

I am using keychain in my macOS app to store jwt tokens (access and refresh)(kSecClassGenericPassword) and I have figure out that I can't manage existed data vi

Set text in uicollectionviewcell

I have created a UIcollectionView and an array with some strings @[@"Item One", "Item Two", @"Item Three"]; In Tableview I would do this: NSString *object = s

Keychain access control from the app with different names

I am using keychain in my macOS app to store jwt tokens (access and refresh)(kSecClassGenericPassword) and I have figure out that I can't manage existed data vi