I'm looking to add a gradient to my UIButton title text. Any solution I find seems to involve overriding drawRect with lower level drawing code.
Is there no out-of-the-box support for gradient text in iOS?
FXLabel is the answer. Example of its output here.
Github project here.
Related
I have implemented crop functionality but
Is it possible to selection crop image like below link
http://deepliquid.com/projects/Jcrop/demos.php?demo=advanced
Short answer, not really unless you do some clever coding and view aligning / transforming.
Long answer, you have two options:
Create your own custom module with XCode, OBJ-C etc.
Just nest the Jcrop code in your own webview inside titanium. (This seems easiest).
Is it possible to have a curve UISlider or is it just Horizontal and Vertical?
I've tried replacing the slider track with a curve image (though i already know hat it will not work because it is just a background), not working.
Is there a way that i could do that?
Take a look at custom controls (both of them are under MIT license):
MHRotaryKnob
Cocoacontrols
Github
DCKnob
Cocoacontrols
Github
I wrote this sample app to show how to use a Curve UIBezierPath and move an object through it
you can take a look at :
Curvy UISlider
I will try to update it.
No you can't do this with the UISlider, only in a straight line. You can rotate the whole slider to a degree you like with the transform property and use a function like CGAffineTransformMakeRotation. An example: How to use CGAffineTransformMakeRotation?.
You can also check out BezierSlider which allows you to customize the path and the selector.
I'm following this guide: http://www.aishack.in/2010/08/sudoku-grabber-with-opencv/2/
and modifying to iOS 5.0.
I managed to find the largest contour (the sudoku "board"), however, it only locates the surrounding square, without the lines inside, as in the tutorial. can this be easily solved?
I'll try and find a way around it, but still would like to know. thanks!
I assume that you are using the camera right now. Try to load the image what is used in the tutorial and check if your implementation works on that image. Then you can continue with nice sudoku images from the web. You may also change the camera angle and distance from the sudoku when taking pictures to get a better, clearer view.
I'm searching for a library which implements something like Xcode 4's HUD which displays when a build is finished and such things.
Can someone give me a link or some hints how to implement it?
To clarify it, I'm searching for something like MBProgressHUD
Please don't suggest Growl, it's not appropriate for my utilisation.
To clarify it: I'm searching for a Mac OS X (Cocoa/Quartz) library, not for iOS.
I don't know of any libraries, but it would be fairly straightforward to do it yourself. Create a borderless, non-opaque, floating window and set your own custom NSView subclass as its content view.
You can then use Cocoa's excellent drawing classes to draw the thing. For example [NSBezierPath bezierPathWithRoundedRect] will make a rounded rectangle very easily, then you can fill it with a transparent grey and composite some text and an image with shadows and so on, in a few lines of code.
It's a bit of work, but maybe not as much as you might think.
ATMHud may fit your needs (source).
I have implemented a scrollview which uses a CATiledLayer. In UIDocumentInteractionController the view shows some kind of checkerboard background while loading its contents. I wonder if there is something similar to UIColor.ScrollViewTexturedBackgroundColor to get this checkerboard? Or do I have to use my own image?
No, there's none in the IOS documentation, unfortunately. Apple uses their custom backgrounds on a lot of apps, and in general you just need to create it and load it with the UIColor.FromPatternImage(UIImage.FromBundle("image")) command.