sdk

Set UISlider.value to AVPlayer.currentTime

拜拜、爱过 提交于 2020-01-01 09:31:55
问题 I am trying to set a UISlider's Value to a AVPlayer's Current Time. I am trying to use this code audioPlayer.currentTime = nowPlayingSlider.value; I am getting this error: Setter method is needed to assign to object using property assignment syntax How do I get this to work. 回答1: Here is how I handled this: -(IBAction) timeScrubberChange:(id) sender{ CMTime t = CMTimeMake(self.nowPlayingTimeScrubber.value, 1); self.nowPlayingCurrentTime.text = [self formatTimeCodeAsString: t.value]; self

Android SDK - Not Scaling at Centre of Touch

左心房为你撑大大i 提交于 2020-01-01 08:58:46
问题 I have a little problem with my app. I have just implemented pinch zoom, but when I pinch to zoom, the image does not scale at the centre of the 2 points as displayed in the images below. Image 1 is where my fingers are before pinching and image 2 is to display that it has not scaled out at the centre of my fingers like it should. Image 1 vs Image 2: Here is my code: package com.jpiionefourone.guitarimage; import android.content.Context; import android.graphics.Canvas; import android.graphics

iOS (iPhone/iPad) SDK - Application not changing orientation

给你一囗甜甜゛ 提交于 2020-01-01 07:12:16
问题 In my custom Tab Bar Application, the orientation never seems to change, even if I force rotate the status bar. Here is my code in my AppDelegate: AppDelegate.h: #import <UIKit/UIKit.h> #import "MBProgressHUD.h" @class exampleViewContoller; @class example1ViewController; @class example2ViewController; @class example3ViewController; @class example4ViewController; @interface <appname>AppDelegate : NSObject <UIApplicationDelegate, MBProgressHUDDelegate> { UIWindow *window; UITabBarController

WM 5 SDK Symbol

柔情痞子 提交于 2020-01-01 06:56:44
问题 We have a large number of Window Mobile Devices (Symbol MC35 & MC70). I want to write a small app that gets the device serial number and simcard serial number (not phone number). I have tryed using the Symbol SDK and I can get the Device Serial Number for the MC70s as they have a Electronic Serial Number Module. But not sure how to get the Sim Details. If i am unable to get the Device Serial Number From the MC35s can I get the IMEI number? The porpose behind this is so I can keep a upto date

How to post to Facebook fanpage as fanpage, not user

给你一囗甜甜゛ 提交于 2020-01-01 06:10:45
问题 How can I post on fanpage wall as fanpage not as a user - using javascript sdk. RIght now on Init im receiving menage_pages and acquiring suitable fanpage id, how can i change call below? var target = '/'+params.target+'/feed' FB.api(target, 'post', { message: params.message, link: params.link, picture: params.picture, caption: params.caption, description: params.description, name: params.name } ,function(response) { if (!response || response.error) { $("#error").removeClass('hidden'); } else

How to post to Facebook fanpage as fanpage, not user

两盒软妹~` 提交于 2020-01-01 06:09:27
问题 How can I post on fanpage wall as fanpage not as a user - using javascript sdk. RIght now on Init im receiving menage_pages and acquiring suitable fanpage id, how can i change call below? var target = '/'+params.target+'/feed' FB.api(target, 'post', { message: params.message, link: params.link, picture: params.picture, caption: params.caption, description: params.description, name: params.name } ,function(response) { if (!response || response.error) { $("#error").removeClass('hidden'); } else

How to post to Facebook fanpage as fanpage, not user

早过忘川 提交于 2020-01-01 06:08:08
问题 How can I post on fanpage wall as fanpage not as a user - using javascript sdk. RIght now on Init im receiving menage_pages and acquiring suitable fanpage id, how can i change call below? var target = '/'+params.target+'/feed' FB.api(target, 'post', { message: params.message, link: params.link, picture: params.picture, caption: params.caption, description: params.description, name: params.name } ,function(response) { if (!response || response.error) { $("#error").removeClass('hidden'); } else

Can't find SDK Manager.exe in Android SDK folder

自古美人都是妖i 提交于 2020-01-01 04:57:08
问题 I need to install some packages in Android SDK Manager , but in my SDK folder there isn't the .exe file (There is only the AVD Manager and the folders). How can I find it? My SDK works normally with Android Studio , without problems, it's strange that SDK Manager.exe isn't there. 回答1: I had to install an older version https://dl.google.com/android/installer_r24.4.1-windows.exe and update it. Going from there worked 回答2: To open the SDK Manager from Android Studio, click Tools > Android > SDK

FB.ui feed dialog requires redirect_uri, dialog does not close

♀尐吖头ヾ 提交于 2020-01-01 03:37:18
问题 I am trying to open a feed dialog using the JS SDK's FB.ui method and have it close after the user shares. My problem is the feed dialog is requiring a redirect_uri even though the documentation says it doesn't have to be defined, and the popup window redirects there and will not close like the callback function says. Here's my code, attached to the submit click event: FB.ui ( { method: 'feed', name: 'xxx!', link: 'link to FB tab', picture: 'jpg', caption: 'xxx', actions: {name:'xxx',link:

Launch Android SDK manager - Tools directory doesn't exist? Mac

好久不见. 提交于 2020-01-01 02:53:06
问题 I'm on mac, I think I've done everything right so far. following these instructions: http://developer.android.com/sdk/installing/adding-packages.html it says to navigate to tools/ directory in terminal. Here are my steps. Open terminal cd Applications result is: No such file or directory path to my tools directory is as follows Applications->adt-bundle-mac-x86_64-20130219 ->SDK -> tools I tried putting my folder onto my desktop, both the tools folder, and my adt-bundle because I could change