Using digital crown on Apple Watch to change size text (watchOS 2) - apple-watch

I'm got an issue with Apple Watch & watchOS 2.
I have a string like: Hello World, now I want whenever I'm swivel the Digital Crown the size of my string will be increase. I'm just start working with Apple Watch for 3 days & don't understand all about it. Please help me guys.

Related

BBC micro:bit extension adding failed for Scratch

I bought a new micro:bit v2 board, and want to add it to Scratch as an extension. I followed the 2 steps from https://scratch.mit.edu/microbit. The step 1 is ok, the led lights of my micro:bit board is flashing 5 characters "zepiv", but the step 2 failed.
The scratch link is running, and the bluetooth is enabled.
The os version is macOS Big sur 11.4(Mac mini late 2014), the bluetooth LMP version is 4.0(0x6).
The weird thing is that the board isn't visible to my Mac, but it is to my Android cell phone.
Is this a problem with my computer? Could anyone help me? Thanks in advance.
Good question, I had a lot of trouble with the same issue when connecting my LEGO MINDSTORMS EV3© to scratch. If you want to connect a device easily a good idea is to have it paired via Bluetooth already. To pair it with a mac:
Open the settings app
Select Bluetooth
Switch your micro:bit into pairing mode:
Hold down buttons A and B on the front of your micro:bit together. The front is the side with two buttons and the LED display. Keep the two buttons held down. Don’t let go of them yet!
While still holding down buttons A and B, press and then release the reset button on the back of the micro:bit. Keep holding down buttons A and B.
You should see “PAIRING MODE!” start to scroll across the micro:bit display. When you see this message start to appear you can release buttons A and B.
Eventually you’ll see a strange pattern on your micro:bit display. This is like your micro:bit’s signature. Other people’s micro:bits will probably display a different pattern.
(I found these instructions at this website)
In the Bluetooth menu, look for your micro:bit device and select Pair
After the device has paired, go back to scratch with scratch link activated, and attempt to connect to the device again.
This worked for me when I connected my EV3 device and I hope it helps you.

How can I imitate the Apple Watch activity complication to go past 100%?

I'm working on an Apple Watch app that tracks a type of daily progress. I want my complication to look like the Apple Activity complication where progress > 100% is shown with a full circle and a small break in the circle. But the complications and providers don't allow the fillFraction to be greater than 1. Is there a way to accomplish this?

WatchOS 2.2 Large Modular Complication Fails To Initally Display Image

I've discovered a new issue in WatchOS 2.2 large modular complication. I have a work-around, but was wondering if anyone knows of a fix for this?
Install your WatchOS app that includes a large modular complication with an image. Go to the Watch face configuration by hard pressing. Choose the modular layout (second one to the right). Customize to add your large modular complication to the center of the watch face. Hit the home button twice to return to the Watch face. Note that your image only shows as a shadow when holding down the complication.
Return to the Watch face configuration by hard pressing. Change the text color of your watch face. Hit the home button twice to return to the Watch face. Note that your image now shows correctly. You can now change the color back to the original color and the watch complication image will still show.
Anyone else seen this bug in WatchOS 2.2? Anyone have a programatic fix instead of a user work-around as I describe above?
Thanks!
Justin

iOS ambient notifications in status bar like new Twitter app

I am trying to recreate the same in app notifications that the new twitter app has, they call them Ambient Notifications. I've search through apples documentation for both iOS 5 and 6, but I haven't found anything useful, or even relevant. If someone has done this before and could give me an example? I can work off that. Thanks.
I am also searching for same as my client want same functionality in our app but still no luck.but meanwhile you can use this library to achieve your goal https://github.com/brunow/BWStatusBarOverlay
If you just want to show a notification in the iOS Status Bar, I would advise you to use CWStatusBarNotification, which can be added to your Xcode project using Cocoa Pods.
You can set parameters, like the duration, background color, text color, animation style, etc.

Can the exposure time be manually adjusted for an iOS cameras?

I want to adjust the exposure of the iPhone/iPod touch camera with intimate detail. I would prefer to take a series of photos with decreasing exposure times to obtain a sequence of images (for HDR reconstruction). Is this possible?
If not, what's the next best thing? It seems you can set a point of interest in the image for the autoexposure. Perhaps I could search for a dark/light region of the image and then use this exposurePointOfInterest to adjust the exposure, but this seems like a very indirect solution that is also error-prone. If anybody has tried an alternative, such an answer is also desirable.
As iOS gives control of frame durations by
MinFrameDuration
MaxFrameDuration
since exposure times vary based on fram rate and frame duration
By setting min and max frame rate to a particular value
You will be locking the fram rate.
That will effect your exposure times.
This is also very indirect way of controlling, may be it helps your case
some example would be like this:
if (conn.isVideoMinFrameDurationSupported)
conn.videoMinFrameDuration = CMTimeMake(1, CAPTURE_FRAMES_PER_SECOND);
if (conn.isVideoMaxFrameDurationSupported)
conn.videoMaxFrameDuration = CMTimeMake(1, CAPTURE_FRAMES_PER_SECOND);
Since you would have to decrease the shutter speed of the camera, this unfortunately does not appear to be possible, and more importantly, against the HIG:
Changing the behavior of iPhone external hardware is a violation of
the iPhone Developer Program License Agreement. Applications must
adhere to the iPhone Human Interface Guidelines as outlined in the
iPhone Developer Program License Agreement section 3.3.7
Related article Apple Removes Camera+ iPhone App From The App Store After Developer Reveals Hack To Enable Hidden Feature.
If it can be done programatically, instead of with the hardware, you might have a chance, but then its just an effect on an image,not a true long exposure picture.
There are some simulated slow shutter apps that do get approved like Slow Shutter or Magic Shutter.
Related article: New iPhone Camera App “Magic Shutter” Hits The App Store.
This is supported since iOS 8:
http://developer.xamarin.com/guides/ios/platform_features/intro_to_manual_camera_controls/
Have a look at AVCaptureExposureModeCustom and CaptureDevice.LockExposure...
I tried to do this for my motion activated camera app (Pocket Sentry) and I found that it is not possible to do this AND get approved in the app store.
I have been trying to do this myself. I think its possible only by using the exposure point of interest property. I am detecting the dark and bright spots and then adjusting the point accordingly.
Please refer : Detecting bright/dark points on iPhone screen
Does anyone know a better way to do this?
I am not too sure, but you should try using AVFoundation class to build the camera app, following the apple's sample code:
AVCam Sample Code
And then try to leverage the exposureMode property of the Class:
exposureMode Class Reference