How can i set action on UITaBar and get event from that
Hi All,
I m doing one apps in which i have to add three UITabBarItem and this is UITabBarSystemItem.
Now i cannot understand that how can i set action and get event from the?
And how can i set various views on three tab bar item.
I have to use UITabBar means i have to use UINavigationController+UITabBar
My code id
tabBar =[[UITabBar alloc] initWithFrame:CGRectMake(0,370,320,50)];
tabBar.backgroundColor =[UIColor blackColor];
UITabBarItem *search =[[UITabBarItem alloc] initWithTabBarSystemItem:UITabBarSystemItemSearch tag:0];
UITabBarItem *recents =[[UITabBarItem alloc] initWithTabBarSystemItem:UITabBarSystemItemRecents tag:1];
UITabBarItem *favorites =[[UITabBarItem alloc] initWithTabBarSystemItem:UITabBarSystemItemFavorit es tag:2];
tabBar.items =[[NSArray arrayWithObjects:search,recents,favorites, nil] retain];
tabBar.selectedItem = search;
[myView addSubview:tabBar];
[tabBar release];
I add a action:
UITabBarItem *search =[[UITabBarItem alloc] InitWithTabBarSystemItem:UITabBarSystemItemSearch tag:0 action:@selector(select:)];
So it error: Warning -no'InitWithTabBarSystemItem:tag:action:' method fount
So any can help me regarding it?
Thanks RickMaddy very much.
I read and do with sample at the View Controller Programming Guide . But when run it only view TabBar with title but haven't got any TabBarItem on it. I searched a few example about TabBar and i did, but i want do a form with a button then press on button it view a form with 2 TabBarItem on TabBar and press each TabBarItem will show correlative form page 1, page 2.
UITabBarController *tabBarControl = [[[UITabBarController alloc] initWithNibName:nil bundle:nil] autorelease];
tabBarControl.title = @"Tab bar";
ViewControl1 *view1 = [[[ViewControl1 alloc] initWithNibName:@"ViewControl1" bundle:nil] autorelease];
ViewControl1 *view2 = [[[ViewControl1 alloc] initWithNibName:@"ViewControl2" bundle:nil] autorelease];
tabBarControl.viewControllers = [NSArray arrayWithObjects:view1,view2,nil];
[self.navigationController pushViewController:tabBarControl animated:YES];
Similar Messages
-
How can I set BPEL server enviorment and create BPEL domain?
Without use the http console, how can I set BPEL server enviorment and create BPEL domain?
When I try to use API like below
import com.oracle.bpel.client.Server;
Server s = new Server(ServerAuthFactory.authenticate("oracle","localhost"));
But I always got four exceptions and one warning like below:
java.io.FileNotFoundException: C:\Workspace\WOSEDISystem\BPEL_Domain_Creation\config\security.properties (The system cannot find the path specified)
java.io.FileNotFoundException: C:\Workspace\WOSEDISystem\BPEL_Domain_Creation\config\ejb.properties (The system cannot find the path specified)
Warning: unable to read transaction.interoperability config property
java.io.FileNotFoundException: C:\Workspace\WOSEDISystem\BPEL_Domain_Creation\config\security.properties (The system cannot find the path specified)
java.lang.Exception: Failed to create "ejb/collaxa/system/ServerBean" bean; exception reported is: "javax.naming.CommunicationException: Can't find SerialContextProvider
Is it right to use com.oracle.bpel.client.Server like this, please help me.
Best regards,
VitaAnyone can help me? Because I need deploy BPEL process on production server, so I need the Java funtion to create domain. Thank you very much if you can tell me the correct method of using com.oracle.bpel.client.Server API.
-
Image: How can I set the inner shadow and inner glow
Hi
How can I set the inner shadow and inner glow of a picture in a graphic frame? Any ideas which boss is to use?
is there anywhere an example?
Thanks
HansHi<br /><br />I try to change the attributes (inner shadow and inner glow) using the following code:<br /><br />int CTest::test(UIDRef uidRefPageItem)<br />{<br /> int iErr = ERR_NO;<br /> int iReturn = -1;<br /> UID uidColor = -1;<br /> IXPAttributeSuite::AttributeList oAttrList;<br /> IXPAttributeSuite::AttributeTypeAndValue oAttribute;<br /><br /> do {<br /> // Interface atrribute utils<br /> Utils<IXPAttributeUtils> ipAttributeUtils;<br /> // Set attribute list<br /> {<br /> IXPAttributeSuite::AttributeTypeAndValue oAttribute(IXPAttributeSuite::kContentInnerShadowApply, kTrue);<br /> oAttrList.push_back(oAttribute);<br /> }<br /> {<br /> IXPAttributeSuite::AttributeTypeAndValue oAttribute(IXPAttributeSuite::kContentInnerShadowBlendMode, kPMBlendNormal);<br /> oAttrList.push_back(oAttribute);<br /> }<br /> {<br /> IXPAttributeSuite::AttributeTypeAndValue oAttribute(IXPAttributeSuite::kContentInnerShadowOpacity, 50.0);<br /> oAttrList.push_back(oAttribute);<br /> }<br /> UIDList uidList(uidRefPageItem);<br /> // Kommando ausführen<br /> iReturn = ipAttributeUtils->ApplyAttributesToPageItems(oAttrList, uidList);<br /> if (iReturn != kSuccess) {<br /> iErr = -1;<br /> break;<br /> }<br /> } while (kFalse);<br /> return iErr;<br />}<br /><br />iReturn is success, but this code doesn't change the attributes for an inner shadow.<br /><br />- What could be wrong?<br /><br />- Is it right to use the uid reference from the page item or is it neccessary to use the uid refernece of the image?<br /><br />Thanks for the support.<br /><br />Kind regards<br />Hans
-
How can I set the value to a session bean from backing bean
Hi Experts,
How can I set the value to a session bean from backing bean where I have created getter and setter
methods for that variable.
Basically I am using ADFUtils class where I am able to get the value from session bean
using following expression
String claimType =
(String)ADFUtil.invokeEL("#{ClaimValueObj.getClaimType}");
Thanks
GayazGayaz,
Wrong Post !!
Post in JDeveloper and ADF
Thanks
--Anil -
I downloaded a movie twice. How can I cancel the other one and get a refund?
I downloaded a movie twice. How can I cancel the other one and get a refund?
If you are speaking of an iTunes purchase, you will need to contact iTunes Customer Service and explain the situation. Their written policy is kinda cold, in that they say they don't issue refunds for erroneous purchases, but I have found them to be a bit more understanding and helpful than that.
Start by calling Apple at 1-800-275-2273 (if in the US) and ask to be connected to iTunes Customer Service. -
How can I set my preferences to allow to open photos that were sent to me
How can I set my preferences to allow to open photos that were sent to me?
Safari > Preferences > General > Open "safe" files after downloading
-
How can I complaint about an app and get my money back?
How can I complaint about an App and get my money back?
First Contact the Developer of the App.
If necessary...Contact iTunes Customer Service and request assistance
Use this Link > Apple Support iTunes Store Contact -
How can i set authrization to delete/change email address from broadcasting
How can i set authorization to delete/change email address from information broadcasting. I would like to set an authorization because other bi users also have an authority to change my auto mail settings. How can i restrict this?
Auth object for Broadcasting in 7.0 server
RSRD_ADMIN - Broadcasting (7.x) Administration
Check the authorizations for Broadcasting in the below SAP notes.
Authorization check for broadcasting settings
SAP Note Number: 1053944
Please go through this thread for additional info.
Authorizations for Broadcasting -
Hi please help me , how can i set my ringing tone on my iPhone from my playlist. I wanna set some normal music from my floder not some ringing tones from iPhone origin . Please help me . Thank you
You need to make your own ringtones in iTunes then sync them to your phone. Follow the directions here:
http://osxdaily.com/2010/09/04/make-free-iphone-ringtones-in-itunes-10/ -
How can I migrate Adobe digital edition and its library from an old computer to a new one?
How can I migrate Adobe digital edition and its library from an old computer to a new one?
Pertains to a Windows machine..
Definitely get other opinions on this. I last did this myself in 2010.
The most important thing, is to make sure you have an account (which I think you must have, or you probably couldn't have posted here).
As I recall, I downloaded ADE to my new computer, launched the software, authorized the new computer by supplying my login, and then just moved the 'My Digital Editions' folder to the new machine.
Be sure to de-authorize your old machine after you have done all of this, or over time you could end up exceeding your 'simultaneous devices'-limit for accessing your materials. I suspect that *from within the app itself, while it is still installed on your old machine* may be your only opportunity to do this. It is certainly the best/easiest.
Hey Internet! Have you done this more recently than I? If so, please chime in to make corrections or add detail. -
How can i reserve an iPhone6 online,and get it at a real store
how can i reserve an iPhone6 online,and get it at a real store? thank you.
If the option appears when you order the iPad from your Apple Online Store then you will have the option. Otherwise, they will ship it directly to you for free.
It seems the option is not available in Hongkong, but call them to be sure: -
How do I create a new account and get stuff from the old account to the new account
How do I create a new account and get stuff from the old account to the new account
There are instructions on this page for creating a new account : Set up an Apple ID in iTunes
Or if you don't want to give credit card details : Create an iTunes Store, App Store, or iBooks Store account without a credit card or other payment method
But you won't be able to transfer purchases from your old account to it, all content that you download from the store will remain tied to the account that downloaded it. -
How can I set the Lock Model and data structure ?
Hi ,
I just have two questions about JE:
1) Is there some method for me to set the lock mode level , such as record lock, page lock and database lock in JE?
2) I learned that there are Btree and Hash,etc , data structures , How can I set the data structure when using JE ?
Thanks in advance !
ChrisI think you're confusing our DB (C-based product) with JE. JE does not have lock mode levels, page locks (it does not have pages), or database locks. JE only has the BTREE method, it does not have the HASH method. For JE, please be sure to reference the JE doc page:
http://www.oracle.com/technology/documentation/berkeley-db/je/index.html
--mark -
HT4356 How can I set up a Canon MX410 to print from my iPad?
How can I set up this printer on my iPad?
If it is not an AirPrint enabled printer
iOS: AirPrint 101
you need an app to print via. Search the App store. Start searching for a cannon printer app and general print app like Print Central -
How can I set the textbox properties to get only integer on netbean?
I use Netbean GUI and I create the swing textbox how can I set it to enter only Integer I don't want the people to enter the string.
Please ask netbeans questions on the netbeans forum.
Sounds like you want a JFormattedTextField or maybe a JSpinner.
Maybe you are looking for
-
Document in DMS can not be printed using FM CVAPI_DOC_VIEW
Hi Experts, We've been using FM CVAPI_DOC_VIEW in the program to get the document in DMS and set value of import parameter 'PF_APPTP' to 3 to make the document to be printed. But after our system upgraded to ECC6.0, the document could not be printed,
-
I was watching a recorded show this morning on my QIP6416 DVR. The show froze while watching. I could not hit stop, exit, or anything else to get out of the frozen dvr playback. The only thing that would work was hitting power on the STB. It turn
-
I have Windows XP, have transferred my movies from my Samsung camera to the computer using Windows Explorer, and they are saved as .avi files. The audio plays but not the video. I have some other files that a friend transferred that are Quicktime but
-
There is a bright light... then nothing...
Hey all. I have a lovely 27" iMac i bought in March 2010. Today, I went to wake it up and the screen flashed, then it went blank and wouldn't come back. It will now not reboot, after resetting the PRAM, I now always get the startup tone, sometimes
-
Sale reverse problem customer no cerdit
Dear All, I m create a customer sale invoice in the date 0f 31.12.2007 now 6.02.2008 on date i cancel sale invoice and same return sale back but my customer not cerdit and same in my stock no item resverse show . when i use tcode vf03 billing doc