iOS storyboard - Disable selection on tabbarcontroller - uitabbarcontroller

do you know how can i disable tabbar item buttons on storyboard? I want to disable all buttons when certain criteria where made, (eg. invalid user name), waiting for your advice guys, thanks.

Related

apex5.0, disable button when another button is clicked

How to disable a button in oracle apex if another button is clicked.
I have buttons in a classic report.
btn1: Update
btn2: Delete
btn3: Save
I would like when one of the button is clicked, the others buttons should be disabled.
Pls advise how to do that
What happens when one of the buttons is clicked? Knowing this could provide a better way of doing what you want, such as with a server-side condition.
Not knowing this, you could do it with dynamic actions - on button click of particular button, disable / hide the other buttons (set multiple true actions). You would also want to specify when to reset them.

Resetting Programmatically adding buttons for UITableViewCell Reuse

In my tableview controller. The images are being added as backgrounds to the button. These buttons are then added to the table view cell on user requirement.
If i show/hide the cell. The buttons with background images from the hidden cell are being shown on the enabled row/cell i.e. overlapping. I have read articles regarding prepareforReuse function. Which can be used if i know the existing properties. In my app the buttons are being added based on user selection.
Is there any way to use prepareforReuse to reset every thing even the buttons which have been added programmatically so that when they are called then overlapping issue doesnt appear.
Main Problem: I cannot give names of my buttons to set their values as nil because i dont know how many will be created. While in prepareforReuse (to reset the cell) i need to provide some property names which exist in cells already.

O365 Custom Ribbon Action - Disable button until item selected

I'm trying to only enable my custom ribbon button when an item is selected, but it looks like you can't do JavaScript in O365 from everything that I've read. Is this true? Is there no way to enable/disable a button based on the item(s) selected?
You can use custom Page components to do that. There's an execellent article in DIWUG magazine issue 6 on how to do it. http://www.diwug.nl/DIWUG_SharePoint_eMagazine6.pdf

how to get previously selected tab after dismissing modal IOS

I have an application using UITabBarController. There are 5 tabs (tab1, tab2, cameraTab, tab3, tab4). When user taps on middle tab , the modal view will appear hiding the TabBar (in my case camera - UIImagePickerController). If user then taps on cancel button on that modal view, how do I make it to return to previously selected tab. For example: if i am on tab2 and I tap on the camera tab, modal view appears and then I tap on cancel, how do i return back to tab2 automatically. The same goes for all other tabs, if I'm on tab3 it should return to tab 3 and so on. Right now it remains on camera tab without modal view - just blank view with background image.
I'd really appreciate if you can help me with some examples. I've been searching in various ways - there must be a way that UITabBarController keeps a record of previously selected tab.
Thank you
Personally, I think you should create a custom view where the middle camera tab would not be a tab at all, it would actually just be a button that presents the modal view and then that view would have a button to dismiss it. I would do a little research in http://idevrecipes.com/ to see if there is anything there. If not, maybe github. The tab bar itself is looking for views to push, not present.
I am sorry I couldn't give you more of an answer, but I wanted to give you something for waiting so long.

How can I scroll dojox.mobile.EdgeToEdgeList to a particular item dojo 1.7.2?

I'm using a dojox.mobile.Opener to select an action from an ActionSheet.
The Action sheet should operate on an item inside an EdgeToEdgeList below that opener.
After the user selects an item, and clicks the open ActionSheet button, I would like to scroll the EdgeToEdgeList so that the selected item is at the top of the screen (not under the opener).
Does anyone have any idea how I can programmatically ask the EdgeToEdgeList to scroll up to a particular item.
Thanks,
Guy
You can use the DOM node's scrollIntoView() method.
Generic browser version:
document.getElementById('NodeIdToScrollTo').scrollIntoView();
Dojo version:
dojo.byId('NodeIdToScrollTo').scrollIntoView();
or if you would rather go via widget id:
dijit.byId('NameOfListItem').domNode.scrollIntoView();