There is way to remove separators between actions in UIAlert (actionSheet style)?
It's not possible to do it with the system-provided UIAlertView.
However, have a look at this Swift-written repo. It may help you creating a custom alert.
Sorry, but no:(
You can easily create your own following this or this tutorials.
I'm sure it will be useful experience for you!
Good luck!
EDIT: updated the links.
Don't add UIAlertAction, then there will be no separator. You can add button programmatically by adding subview.
Related
I need to create an animation inside an app, that looks like the moleskines in the app
Paper by fiftythree, I am using the iCarousel pod but I need to create an animation that looks like you are turning the page, do you have any ideas, examples or documentation that helps me to do it?
I recommend Mark Pospesel's MPTransition.
https://github.com/mpospese/MPFoldTransition
It's very difficult to write your own page-turn animation. One possible approach is to use a UIPageViewController, which does this for you.
i want to do something like this..
i have googled about this but didn't found a good solution or a tutorial.here what i need to do.i want to show a table view inside a alert view.i am not sure how can i do this. some blogs says using delegates we can do this. but i cant understand what are those.can some one clearly tell me step by step what should i do..i am glad if you guide me with code examples or links with great guidance.
thank you
EDIT
can anyone guide me to do this in ios 7... at least the steps i have to follow...
I used a library for adding a custom view to the alert view. In my case was an UIPickerView. Maybe it works with your Table View
Can download on that github link: https://github.com/wimagguc/ios-custom-alertview
Just use this code, after import the custom Alert View:
UIView *customView ..;
[alertView setContainerView:customView];
You following link download sample code and implement into your project may be solve your problem
Source Code Link Here.
Happy Coding
View this example
https://github.com/TomSwift/TSAlertView
it will help you
I'm trying to display more than one line of text in a custom UIMenuItem.
I've tried using a simple "\n" in the title property of the UIMenuItem but with no luck.
Example:
UIMenuItem *menuItem; //Is then allocated properly....
// Before the Menu is displayed
menuItem.title = #"This is a first line.\nThis is a second line.";
Unfortunately I just end up with one line being displayed...
What I want to achieve is something similar to what you can see upon a LongPress on a row in the Apple iPod/Music app.
I've just found out about this github project as a solution:
https://github.com/questbeat/QBPopupMenu
You can display whatever custom UIView within a MenuItem. So I inserted a multi-line UILabel and that works.
However I would rather use the native Apple UIMenutItem approach if this is possible. Any ideas? Thanks in advance.
You would need to change some internal property of the UIMenuItem, but unfortunately Apple does not provide a way to do it.
So, as for today, there's not way to change the display of a UIMenuItem.
Have you tried '\r' instead of '\n'?
I am using Open Flow(Cover Flow) implementation of Alex Fajkowski https://github.com/thefaj/OpenFlow. I would like to a text lable under the images, which should update for each view. I still cant make it work. Would anyone be so kind and give me some further hints where exactly and how to implement this?
Best Regards Regen
Well theres a delegate method (selectionDidChange) that gives you the currently selected index. Hook up a textView to your view controller. Then update the textview in the delegate method "selectionDidChange"
I add a UITextField to a UITableViewCell as a AccessoryView. I'd like a clear button at the end of the textfield. Now it looks like this:
http://twitpic.com/43mzwu
I think the clear button doesn't look good. I think it should be more on the right site. But now I found no solution to get the button more on the right side. Do you have any solution for my problem.
(Sorry for my bad english, I'm no native.)
Subclass UITextfield and implement clearButtonRectForBounds:. You can refer to the iOS Reference Library for more details on UITextFields.