How to stretch an iOS UISlider - ios

I want to use the standard iOS slider in my application, but wanted it to be a bit stretched so it doesn't "disappear" under my finger... neither google or the books informed me about this.. Is is possible? thks!

Set a custom thumb image then, using setThumbImage:forState:

Related

How does Uber achieve this UI in WatchKit?

How does it superimpose elements (the timer is above the map) ?
To my understanding, you can only use background images on groups, no other kind of custom views...
Any idea ?
My initial guess is that they're using a dynamically-generated image of a map as the background image in the group. The giveaway is that, while WKInterfaceMap allows you to add custom annotations, you can't draw custom shapes like the blue route line.
I could be way off.
The way Uber (and most of the big companies custom's UI) is done is that they're just generating an image in the iOS which is the sent back to the WatchKit extensions and simply displayed as an image.
If you want to create your custom UI with hte current version of the SDK, this is the only way to achieve exactly what you want. You will need some hacks to achieve interactivity but you should be able to do that on your own :)

iOS8 - Crop and Straighten image as built in photos tool

In my app, i want users to click a photo, then i want to allow them to edit it for crop/rotate/straighten. Can i use built-in photos app for that? or is there any open-source/api to have similar view controller.
I know it's a possible duplicate of Is there a view controller for image crop and rotate works like iOS 8 photo.app? but i found no answer here as well.Please let me know if it's possible?
Unfortunately, no.
UIImagePickerViewController allowEditing property, when set to YES, provides you a very simple cropping UI, but it doesn't support advanced rotation as iOS Photo app.
So you'll have to make it yourself.
The github projects in the question you linked might be a good starting point for that. (here's another one)
Good luck !
I wrote one in Swift, you can continue to develop based on this: QCropper

using default iOS camera button as a UIButton

I am a newbie at iOS development so please be kind.
I want to use the default camera button as a UIButton. (I want the camera button to be displayed against a field in my form and want to use the default graphic because users are familiar with it)
I don't see any option to insert it as a simple UIButton, I don't want it in the toolbar.
If it's not possible to include it this way, can I use it's image as UIButton? Or it can cause any objection in the app review?
You can use UIKit Artwork Extractor project to get internal iOS images from simulator, but I'm not sure if it's legal to use these images.
There are some examples:
PS:
You also can get a third-party icon for your needs, e.g. from http://www.glyphish.com/
You can use UIBarButtonSystemItemCamera from UIBarButtonItem. It is a UIBarButtonItem, not a UIButton, but it is the real deal.
I ended up using a custom graphic which we owned to avoid any possibility of legal issues or app rejection.

iOS OpenTok - How to style the video views?

I am using the OpenTok iOS Framework to allow video chat within my app.
However, I am trying to find a way to custom style the views that display the user and connected user's streams.
From what I have found, it seems like these views are created in OTVideoView files, but I can only access the header.
Can anyone point me in the right direction on how to customize the views for the streams so I can make it look nicer than the default styling?
Hi, Each Subscriber.view of publisher.view is really a UIView object (Technical talk: OTVideoView is subclass of UIView). You can style them however you like by applying transforms and such to the view.
For example, to adjust width/height dynamically, you can do something like this:
[_publisher.view setFrame:CGRectMake(left, top, width, height)];
Anything you can do to UIView, you can do with OTVideoView.
Here's UIView's documentation: http://developer.apple.com/library/ios/#documentation/uikit/reference/uiview_class/uiview/uiview.html
Hope that helps,
Song
P.S. If you have time, check out this blog post about using Core Graphics with OpenTok's video streams to do some nifty image recognition!
http://www.tokbox.com/blog/fun-with-core-graphics-in-ios/

How do I replicate the Record Button in iOS

I want to replicate the record button with the glowing red middle from the iOS camera app. Is it available via some framework? Has someone already implemented it?
Inside a button you and add UIImageView as a subview and animate when you want it to glow.
To do animation using UIImageView please follow this article. It has source code and sample project implementation.
http://appsamuck.com/day2.html

Resources