Tag: ios

Uber SDK for iOS – get real time ride request status made via deep link

I’m having some trouble finding a way to do this. I got an app that uses Uber SDK for iOS. I was able to add the “RideRequestButton” with “Ride there with Uber” text to do a deeplink to the Uber app. Also, I’m done requesting the token using SSO and fetch the token with Request […]

IOS 9 not asking permission for remote notifications

I have a problem when trying to ask permission for remote notifications. It works flawlessly on iOS 10 but when I try to do it on an iOS 9 device it doesn’t show any alert and the UIApplication delegate method “application:didRegisterForRemoteNotificationsWithDeviceToken:” isn’t called. Neither the “failed” method. I’m only testing on real devices, not simulator. […]

Copying of NSMutableArray from one viewcontroller to another viewcontroller?

I have one NSMutableArray in FirstViewController declared as firstArray. I want to copy the secondArray into firstArray. In the SecondViewController, Self.FirstViewController.firstArray = self.secondArray; When I attempt to NSLog the firstArray.count from the FirstViewController, it display 0. It should have two objects in the array Anyone can advise on this?

Google Api _GTMOAuth2ViewControllerTouch not found

I am trying to integrate with Youtube Data API. I have put these libraries inside my project folder: google-api-objectivec-client-read-only and, inside of folder: google-api-objectivec-client-read-only gtm-http-fetcher gtm-oauth2 gtm-session inside google-api-objectivec-client-read-only. However, during build: (null): “_OBJC_CLASS_$_GTMOAuth2ViewControllerTouch”, referenced from: How can I take above error away? Here is my Header Search Path:

I've made changes to a storyboard after saving a snapshot, now my changes won't reflect when I compile my code. What am I doing wrong?

I’m working with xcode 4.2 on a project. I enabled the local git repository on project creation, but hadn’t been using snapshots. I decided to make a change that I wasn’t sure I wanted to keep, so I stored a snapshot prior to making the code changes. After making the changes, the running application seems […]

Frameworks Added to cocoapod getiing import issue “Framework not found”

This is my podfile: `target ‘ROC’ do source ‘https://github.com/CocoaPods/Specs.git’ platform :ios, ‘7.0’ pod ‘AFNetworking’, ‘~> 2.5’ pod ‘INTULocationManager’ pod ‘Fabric’ pod ‘Crashlytics’ pod ‘FSMediaPicker’ pod ‘IQDropDownTextField’ pod ‘Google/Analytics’ pod ‘Google/SignIn’ pod ‘Appboy-iOS-SDK’, ‘~>2.22′ end ` Now I open podfile and added pod ‘GoogleMaps’ pod ‘GooglePlaces’ then update pod. I can see googleMaps framework in project […]

ios custom NSObject casting

If I have a custom NSObject called Human which has a subclass called Male and I have an array called humans containing Human objects. When iterating over the humans array can I cast the object such as: for (Human *human in humans) { Male *male = (Male *)human; } or is it better to create […]

How do I put an UIImageView in the center of a tableView

I want my image to be in the center in the x axis, I’m writing this code : let emptyImage=UIImageView(frame: CGRect(x: (UIScreen.main.bounds.width)/2 ,y: 200 , width: 50, height: 50)) but it doesn’t work.

scrollView not scrolling all my contents

I’m using a scrollView and inside it used a view. I set sizes like this: I think the height of my view always is 959. but when I change the height from 959 to 2000, I see a orange line and when I use Editor->resolve Auto..->update frames my custom hight returns to 959. even when […]

Method decidePolicyForNavigationAction is not called some times

I wan’t to create a downloader of files using built-in WKWebView like in this app: https://itunes.apple.com/it/app/browser-file-manager-for-documents/id979401801?mt=8 .When you click on audio/video/document it asks you to download it.I used this method of WKNavigationDelegate – (void)webView:(WKWebView *)webView decidePolicyForNavigationAction:(WKNavigationAction *)navigationAction decisionHandler:(void (^)(WKNavigationActionPolicy))decisionHandler{ if(navigationAction.navigationType == WKNavigationTypeLinkActivated) { NSURL* url = navigationAction.request.URL; NSLog(@”%@”,[url description]); } decisionHandler(WKNavigationActionPolicyAllow); } but it calls […]