Problem in set selectedTextcolor in uitableview cell in iPhone SDK 3.1.2

Hello,
I set selected text color in uitableview cell using cell.selectedTextColor = [UIColor whiteColor]; for iPhone SDK 2.2.1.
Now i use iPhone SDK 3.1.2, So for that i make change as per documentation for that i use textLabel properties. But selectedTextColor is not exit.
So Now for SDK 3.1.2 how to set selectedTextColor?..
Thank you.

The textLabel property is an instance of UILabel, so it has its own textColor, textAlignment, and font properties. E.g.:
cell.textLabel.text = @"foo";
cell.textLabel.textColor = [UIColor whiteColor];
cell.textLabel.textAlignment = UITextAlignmentLeft;
Hope that helps!
- Ray

Similar Messages

  • Problem of set focus on the cell during the validation.

    I am having a table with 5 columns.
    I can change the value of the 2nd cell in 2 ways.
    one by 1. editing the 2nd cell
    or by 2. clicking the button avilable in the 1st cell.(the button editor will set the value to the 2nd cell of selected row)
    In both cases, i have to validate the value in the 2nd cell.
    If the value is not meeting some criteria, i am pop uping a msg box, contain approprite message.
    and the cursor should be focused on the 2nd cell until the value will be corrected.
    i done for the case 1.
    but for the case 2, i couldn't keep the cursor on the 2nd cell when the value got changed by the button editor of cell 1, and if the value is wrong
    The 1st cell 2nd cell are having it own Renderer and Editor
    even i tried a lot, but i not yet achieved it.
    pls. guide me to get a perfect result.

    Thnks for u'r reply.
    the 1st part what i mentioned is done by the same way in those example by the sun site only.
    But in the 2nd part, when i set the value to text field by the button editor,
    the editor of the textField(2nd cell), is not got called.
    If i made to call editor also, i am unable to keep the cursor on 2nd cell

  • Problem in setting up new email account on iPhone

    Grateful for any help with this irritating problem.  I'm trying to load my ntlworld email acount onto a new iPhone but, after 20 minutes waiting while the system tries to "verify", am getting the message that the SMTP server smtp.ntlworld. com is not responding.  I've followed the tips in the help manual but they don't work.  Any advice would be very helpful.  Thanks

    Contact yoru email provider for support and verify you have the correct settings.

  • Why does a UITableView cell.contentView.bounds.size.width change with cell reuse?

    I use `cell.contentView.bounds.size.width` to calculate the position of a text field in a UITableView cell. When the cell is created, debug code reports the width as 302. When the cell scrolls off the screen and then back on, the debug code reports that the it is 280--every time. It doesn't seem to want to go back to 302 and stays stuck at 280. The net result is that the text field gets put in the wrong place the second time the field is put into the cell's contentView, though it was put in the right place the first time.
    I figure 22 is significant somehow, but I don't know what it is. Guessing it might be the disclosure arrow, I moved the "clear the cell" code up front of the width determination, including setting the accessory to nada.
    Can anybody tell me what's going on here?
    The code (with irrelevant--that I know of--stuff snipped out) looks like this:
    <code>
        // Customize the appearance of table view cells.
        - (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath {
            static NSString *CellIdentifier = @"Cell";
                  NSUInteger section = [indexPath section];
                  NSUInteger row = [indexPath row];
            UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:CellIdentifier];
            if (cell == nil) {
                cell = [[[UITableViewCell alloc] initWithStyle:UITableViewCellStyleSubtitle reuseIdentifier:CellIdentifier] autorelease];
            // Configure the cell.
            while( [cell.contentView.subviews count] ){
                id subview = [cell.contentView.subviews objectAtIndex:0];
                [subview removeFromSuperview];
            cell.accessoryType = UITableViewCellAccessoryDisclosureIndicator;
        8< snip!
                  CGFloat          theCellWidth = cell.contentView.bounds.size.width - 44.0;
                  CGFloat theLineHeight = [[UIFont boldSystemFontOfSize: [UIFont labelFontSize]+1.0] lineHeight];
            NSLog(@"cell.contentView.bounds.size.width %1.0f",cell.contentView.bounds.size.width);
            if (0==section) {
                            switch (row) {
                                      case 2:
                        while( [cell.contentView.subviews count] ){
                            id subview = [cell.contentView.subviews objectAtIndex:0];
                            [subview removeFromSuperview];
                        cell.selectionStyle = UITableViewCellSelectionStyleNone;
                                                cell.textLabel.text = @" ";
                                                cell.detailTextLabel.text = @"The Age";
                                                theAgeTextField.frame = CGRectMake(10.0, 2.0, theCellWidth, theLineHeight);
        //                NSLog(@"cell.contentView %@",cell.contentView);
                                                theAgeTextField.text = theAge;
                                                theAgeTextField.font = [UIFont boldSystemFontOfSize: [UIFont labelFontSize]+1.0];
                                                theAgeTextField.keyboardType = UIKeyboardTypeDecimalPad;
                                                theAgeTextField.borderStyle = UITextBorderStyleNone;
                                                theAgeTextField.userInteractionEnabled = NO;
                                                [cell.contentView addSubview:theAgeTextField];
                                                cell.accessoryType = UITableViewCellAccessoryDisclosureIndicator;
                                                break;
        8< snip! (lots of closing braces and other stuff omitted)
            return cell;
    <hr>
    </code>
    **Want to try this one at home, boys and girls?**
    Start with a new Navigation-based Application. Put the following code into RootViewController.m:
    <code>
        - (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section
            return 5;
        // Customize the appearance of table view cells.
        - (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath
            static NSString *CellIdentifier = @"Cell";
            UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:CellIdentifier];
            if (cell == nil) {
                cell = [[[UITableViewCell alloc] initWithStyle:UITableViewCellStyleSubtitle reuseIdentifier:CellIdentifier] autorelease];
            NSLog(@"cell.contentView.bounds.size.width %1.0f",cell.contentView.bounds.size.width);
            // Configure the cell.
            return cell;
    </code>
    There are only two changes in the default code required to make this happen: changing the number of rows in the section ("return 5") and the style of the cell must be _UITableViewCellStyleSubtitle_. Then, when you run the program, you'll see five lines of this:
    <code>
        2011-06-18 11:10:19.976 TestTableCells[7569:207] cell.contentView.bounds.size.width 302
        2011-06-18 11:10:19.978 TestTableCells[7569:207] cell.contentView.bounds.size.width 302
        2011-06-18 11:10:19.979 TestTableCells[7569:207] cell.contentView.bounds.size.width 302
        2011-06-18 11:10:19.980 TestTableCells[7569:207] cell.contentView.bounds.size.width 302
        2011-06-18 11:10:19.982 TestTableCells[7569:207] cell.contentView.bounds.size.width 302
    </code>
    Drag some cells off the screen (drag up--down doesn't do anything) and when they reappear, you get this:
    <code>
        2011-06-18 11:10:24.013 TestTableCells[7569:207] cell.contentView.bounds.size.width 320
        2011-06-18 11:10:24.047 TestTableCells[7569:207] cell.contentView.bounds.size.width 320
        2011-06-18 11:10:24.130 TestTableCells[7569:207] cell.contentView.bounds.size.width 320
    </code>
    Frankly, I'm frustrated as heck with this, and am so very tempted to pony up the $99 (without a working app, even) so I can have somebody at Apple weigh in on this one.
    <hr>
    Wanna' see something more interesting? Try this in place of the `static NSString...` line:
    <code>
            NSString *CellIdentifier = [NSString stringWithFormat: @"%d", arc4random() ];
            NSLog(@"%@",CellIdentifier);
    </code>
    Now, every time, the width in the log is _always_ 302. It would seem, then, that a reused cell has different content width than the original cell.
    Anybody got a clue on this?

    Hi,
    i guess the reason is that a newly create cell is create with a default frame by initWithStyle:
    But it's not yet added to any superview so you're logging that default size.
    After returning the new cell the tableViewController adds that cell as subview to the tableView which can lead to a resize of that cell.
    If the cell is scrolled off screen it's just removed from superview but stays the same size. If it's reused later it's still having the same size it had when removed from superview.
    Dirk
    initWithStyle:
    But it's not

  • Problem with Set/Get volume of input device with single channel

    from Symadept <[email protected]>
    to Cocoa Developers <[email protected]>,
    coreaudio-api <[email protected]>
    date Thu, Dec 10, 2009 at 2:45 PM
    subject Problem with Set/Get volume of input device with single channel
    mailed-by gmail.com
    hide details 2:45 PM (2 hours ago)
    Hi,
    I am trying to Set/Get Volume level of Input device which has only single channel but no master channel, then it fails to retrieve the kAudioDevicePropertyPreferredChannelsForStereo and intermittently kAudioDevicePropertyVolumeScalar for each channel. But this works well for Output device.
    So is there any difference in setting/getting the volume of input channels?
    I am pasting the downloadable link to sample.
    http://www.4shared.com/file/169494513/f53ed27/VolumeManagerTest.html
    Thanks in advance.
    Regards
    Mustafa
    Tags: MacOSX, CoreAudio, Objective C.

    That works but the the game will not be in full screen, it will have an empty strip at the bottom.
    I actually found out what's the problem. I traced the stageWidth and stageHeight during resizing event. I found out that when it first resized, the stage width and height were the size with the notification bar. So when I pass the stage into startling, myStarling = new Starling(Game,stage), the stage is in the wrong size. For some reason, I can only get the correct stage width and height after the third resizing event.
    So now I need to restart Starling everytime a resizing event happened. It gives me the right result but I am not sure it is a good idea to do that.
    And thanks a lot for your time kglad~I really appriciate your help.

  • Problem with SET GET parameters

    Hi all,
    I am facing a problem using SET and GET parameters.
    There is a Z transaction(Dialog program) where some fields of screen are having parameter ID's. That transaction is designed to diaplay/change status of only one inspection lot at a time.
    Now I need to call that transaction in a loop using BDC. I mean i need to update the status of multiple inspection lots(one after the other). Before calling the transaction I am using
    SET PARAMETER ID 'QLS' FIELD lv_prueflos.
    Unfortunately the transaction is only changing the first inspection lot. When I debugged I found that the screen field is changing in PAI. Even though in PBO it shows the next value, when it goes to PAI it is automatically changing to the first value(inspection lot).
    Example: Inspection Lots : 4100000234
                                               4100000235
                                              4100000236
    Now first time when the call transaction is being made the status of insp lot 4100000234 is changed. For the second time when insp lot 4100000235 is being passed in PBO ican see this. But the moment it enters PAI the screen field changes to 4100000234.
    Could you pls help me in solving this issue.
    Thanks,
    Aravind

    Hi,
    Problem with SET GET parameters
    Regarding on your query. Follow this below link.
    It will help you.
    Re: Problem with Set parameter ID
    Re: Problem in Set parameter ID
    I Hope it will helps to you.
    Regards,
    Sekhar

  • A problem regarding set up of Oracle Lite 3.6.0.2.0 on Win 95, with JDK 1.1.8 &java 2

    A problem regarding set up of Oracle Lite 3.6.0.2.0 on Win 95, with JDK 1.1.8 and Java 2 SDK ( Ver 1.3 Beta)
    After the installation of Oracle Lite 3.6.0.2.0 on a laptop (with WIN 95 OS), When I run Oracle Lite Designer from start menu, I receive following error message :
    ====================================
    Invalid class name 'FILES\ORA95_2\LITE\DESIGNER\oldes.jar;C:\PROGRAM'
    usage: java [-options] class
    where options include:
    -help print out this message
    -version print out the build version
    -v -verbose turn on verbose mode
    -debug enable remote JAVA debugging
    -noasyncgc don't allow asynchronous garbage collection
    -verbosegc print a message when garbage collection occurs
    -noclassgc disable class garbage collection
    -ss<number> set the maximum native stack size for any thread
    -oss<number> set the maximum Java stack size for any thread
    -ms<number> set the initial Java heap size
    -mx<number> set the maximum Java heap size
    -classpath <directories separated by semicolons>
    list directories in which to look for classes
    -prof[:<file>] output profiling data to .\java.prof or .\<file>
    -verify verify all classes when read in
    -verifyremote verify classes read in over the network [default]
    -noverify do not verify any class
    -nojit disable JIT compiler
    Please make sure that JDK 1.1.4 (or greater) is installed in your machine and CLASSPATH is set properly. JAVA.EXE must be in the PATH.
    ====================================
    My ORACLE_HOME is c:\program files\ora95_2 and Oracle Lite is installed under the ORACLE_HOME in LITE\DESIGNER directory.
    JDK version is 1.1.8 which is greater than 1.1.4 installed in c:\program files\jdk1.1.8, My PATH, and CLASSPATH are set in AUTOEXEC.BAT as follows:
    set CLASSPATH=c:\Progra~1\jdk1.1.8\lib\classes.zip;c:\progra~1\ora95_2\lite\classes\olite36.jar;c:\progra~1\ora95_2\lite\designer\oldes.jar;c:\progra~1\ora95_2\lite\designer\swingall.j ar
    PATH=C:\Progra~1\Ora95_2\bin;.;c:\Progra~1\jdk1.1.8\lib;c:\Progra~1\jdk1.1.8\bin;C:\Progra~1\Ora95_2\lite\Designer;C:\WIN95;C:\WIN95\COMMAND;C:\UTIL
    And, I can run JAVA.EXE from any directory on command prompt.
    With JAVA 2 SDK (ver 1.3 Beta) instead of JDK 1.1.8 I'm getting a different Error message as follows:
    =============================
    java.lang.NoClassFoundError: 'FILES\ORA95_2\LITE\DESIGNER\oldes.jar;C:\PROGRAM'
    Please make sure that JDK 1.1.4 (or greater) is installed in your machine and CLASSPATH is set properly. JAVA.EXE must be in the PATH.
    ==============================
    the PATH and CLASSPATH were set accordingly, as with JDK1.1.8, and there was no classes.zip in classpath
    also the class file or the jar file looks weird or wrapped in the error message : 'FILES\ORA95_2\LITE\DESIGNER\oldes.jar;C:\PROGRAM'
    Another interesting thing I noticed is if I run oldes.exe from Installation CD, the Oracle Lite Designer runs fine, and without error, I'm able to modify tables in the database of my laptop also.
    Could someone shade some light on what am I doing wrong here ?
    Thanks for help in advance .
    Regards
    Viral
    null

    On 07/20/2015 06:35 AM, Itzhak Hovav wrote:
    > hi
    > [snip]
    > [root@p22 eclipse]# cat eclipse.ini -startup
    > plugins/org.eclipse.equinox.launcher_1.3.0.v20120522-1813.jar
    > --launcher.library
    > plugins/org.eclipse.equinox.launcher.gtk.linux.x86_64_1.1.200.v20120913-144807
    >
    > -showsplash
    > org.eclipse.platform
    > --launcher.XXMaxPermSize
    > 256m
    > --launcher.defaultAction
    > openFile
    > -vmargs
    > -Xms40m
    > -Xmx512m
    > [snip]
    Try this: http://wiki.eclipse.org/Eclipse.ini. You should have read the
    sticky posts at forum's top for getting started help.

  • Button in Bex Analyser 7.0 - problem with setting up Static Parameters

    Hello,
    I know a similar problem has been discussed here already, but I am still having problems with setting up Static Parameters of my Button in BEx Analyser 7.0, so that I can pass Variable values from that button to my query.
    This is what I do - in Static Parameters of my Button I set the following values:
    Name                          Index          Value
    DATA_PROVIDER        0               DP_1
    CMD                             0               PROCESS_VARIABLES
    SUBCMD                      0               VAR_SUBMIT
    VAR_NAME                 0               0RMA_FIP
    VAR_VALUE               0               004/2010
    As a result, I would like the value 004/2010 to be passed to variable 0RMA_FIP (which is mandatory) and the query to be executed with that value. For some reason, however, the value is not passed correctly, and instead the variable is filled with a blank or not filled at all, and I am getting a message "Specifiy value for variable Fiscal year/period". What do I do wrong?
    Just to give you a broader picture - I would like to later use this logic to pass more than one variables into a query, including a hierarchy node, and read the values from an Excel worksheet - however, after many attempts to do so, I started playing with just one variable to figure out what the problem was.
    I have already seen the following two threads and SAP notes on passing variable values from the button:
    Re: Button in BEx Analyzer 7.0
    Re: How to set variables values via VBA.
    http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/f0881371-78a1-2910-f0b8-af3e184929be?quicklink=index&overridelayout=true
    Can anyone please advise?
    Cheers,
    AL

    I managed to figure it out myself!
    Instead of VAR_VALUE I need to enter VAR_VALUE_EXT, and it works fine.
    I will mark this thread as "answered".

  • Problem in setting participant in business rule

    Hi All,
    I am facing problem while setting the target participant in business rule. I want to route the task to the target participant for the adhoc routing in serial process .It's not taking the value as participant name.
    I have 5 participant for approve d task .But when I am writing
    If PreviousOutcome.outcome=="'REJECT'"
    then
    call GOTO(participant:"CTU")
    as CTU is one of the participant in the process.
    But it gives the error while deploying the application as unknown participant .Please tell me how come I route to different participant as per the condition in serial routing.
    please help me.
    Thanks & Regards
    Aseet

    Multi-post:
    http://forum.java.sun.com/thread.jspa?threadID=727161&tstart=0

  • Problem with setting Source Level in Sun Studio 2

    I've got problem with setting Source Level to 1.5 in Sun Studio 2. When I try to set it to 1.5 in Project properties and click Ok everything seem to go well, but when I open Project Properties again Source Level is set to 1.4. I need this to work cause I started to lear Java recently and I want to use foreach loop.
    Please help

    I'm just citing an example using Date().
    In fact, whether I use DateFormat or Calendar, it shows the same result.
    When I set the date to 1 Jan 1950 0 hours 0 minutes 0 seconds,
    jdk1.4.2 will always return me 1 Jan 1950 0 hours 10 minutes 0 seconds.
    It works correctly under jdk1.3.1

  • Problem in Set Check for Duplicate Invoices

    Hi,
    I have did all the required setting s for check duplicate invoice , but when i do miro , its not giving any error or warning msge.. i did all the config  as per blw link..
    FYI-  in migo, i have entered the 3434 as a invoice ref # in delveriy note column and while doing miro , i have entered 3434 in ref column and give the 3434 as a dlvery note # in item tab .. but its not giving any error?
    Pls guide, where the mistake has gone wrongly??
    Problem in Set Check for Duplicate Invoices
    Edited by: UJ on May 15, 2009 1:45 PM

    Hello,
    Hope you have done all the required configurations for the checking of double invoice and ticked the vendor for the double invoice checking in vendor master record.
    You have to understand the way the system does the double invoice check.
    As per the configuration, if the system identifies an invoice for a vendor whose double invoice check is activated, at the time of MIRO, system will update a separate table.
    So system will check for the double invoice entry among the invoices entered after making the tick in the vendor master.
    i meant to say that, if you are introducing this double invoice check in between the transactions, the check will be valid only for the invoices entered after the activation of double invoice check.
    Regards

  • Problems with setting up my ISP's mail server in Windows Live Mail and Thunderbird

    The laptop is a G60-535DX with Windows 7  64 bit. I've managed to setup my gmail account fine in Live Mail, but when setting  up my ISP' mail server, it doesn't work. I get the message that the information was entered correctly, and I see the 'connecting' at the bottom of the page, and then 'error', and clicking on it shows a socket error #10061. In Thunderbird, I get a timeout error message. I've entered all the incoming and outgoing server information correctly, (I've done this over 8-9 times now), the ports are the defaults(110,25), no SSL, no authentication. I've talked with my ISP several times. Just a couple of hours ago was the last time. Their only other possibilities were that Live Mail had problems with setting up more than one account, that Live Mail needed updating, that Windows 7 was a new operating system and there were 'kinks'. I removed the gmail account, set up the ISP's mail by itself; didn't help. I checked for Live Mail updates, but found out that they all come from Windows updates(which are current).  The folks on PCQ&A inform me that they have 3 or 4 accounts with Live Mail. I can get my mail, by logging onto my ISP's website, but that' kind of a nuisance. I posted this in Seven Forums and they didn't have any ideas. As I said, I also can't get my mail server to work in Thunderbird, either.  I don't know what else to try. (short of activating the recovery partition and starting from scratch). Any ideas would be more that welcome.
    Thanks,
    Steve

    Stevehiker wrote:
    Nevermind, it's fixed. One of the guys on PCQ&A suggested going to my ISP's website to see if they had a support page. They did and it stated that under certain circumstances that for the login ID the whole email address should be entered. For XP and Outlook Express one only uses the first part of the email address (your name); so just for grins I entered the whole address, name and all and everyting worked. Called my ISP and was told that that wasn't the way it's supposed to work. Well----
    Thanks anyway,
    Steve
    Mine works the same way_must enter full email address as login. AT&T?
    ******Clicking the Thumbs-Up button is a way to say -Thanks!.******
    **Click Accept as Solution on a Reply that solves your issue to help others**

  • Problem in set session varibales

    hi
    i have a problem in set roles varibale in OBIEE 11.1.1.6
    i use a initialazion block and row-wize initialization
    but it set the ROLES varibvale just by BIConsumer and Authenticated user
    and it does not set my values
    what should i do??
    thanx for any help
    medi

    Hi Atul,
    >>  I am facing problem that in Item master "Set GL By" changes from Item level to Item Group automatically
    I am not sure whether my reply will be of any further help to you or not!
    However, would you please check whether this behaviour is also reproducible in demo database (say OEC computers) or any other database on the same server environment.
    If you are able reproduce the same problem in all databases that are configured in your current server environment, I recommend to report the issue to support via a ticket (if not created already).
    If the problem is with only one database then as already recommended by other experts on this thread:
    1. Comment all user code in Stored procedure
    2. Verify if any formatted search queries are active on Item Master (like auto number generation, like ...)
    3. Is there any add-ons that are active on Item Master
    Would appreciate if you also write back whether you are not able to update on change of "Set GL By" (or) it is getting changed automatically from item level to Item group.
    Good Luck.
    Regards
    Satish

  • Problem in setting transperancy in Jframe

    I have a problem in setting transperancy to the Jframe. I would like to know is there is any way for doing it, if it so how ?
    With Thanks
    John

    Multi-post:
    http://forum.java.sun.com/thread.jspa?threadID=727161&tstart=0

  • Obiee 11g . problem with set default as columnname in interaction tab

    Hi Obiee gurus ,
    I have small problem with set default option in interaction tab in column properties. actually my problem is , i changed one column bold save as set default option bold and how to revert back to my column option. when i create new analysis with same name . it takes set default option for that column.
    can Please give some suggestion for this problem.
    regards
    Srinivas

    Hi Srinivas,
    i guess this will be same for 11G
    Refer
    http://blogs.oracle.com/siebelessentials//2008/08/remove_systemwide_default_sett.html
    thanks,
    Saichand.v

Maybe you are looking for

  • Installation of Oracle 11g R2 in Linux.........Step By Step

    Oracle 11g R2 installtion in Linux Author: Arun For Reference: http://www.morganslibrary.org/reference/linux_oracle_inst11gR2.html Operating System Configuration 1.As root: Install RPM’s For RHEL 5 (32-bit): rpm -Uvih binutils-2* rpm -Uvih compat-lib

  • Big Problems since 10.6.5 update!

    Updated the other night on my imac 24" since then it has been freezing. I restarted my mac and I can move my mouse but not one application I click on opens..I mean nothing. I have tried rebooting with the start up disc still the same problem. I hope

  • Why does my iMac keep waking every 2 minutes from 2:00 in the morning?

    Hi, I awoke the other night and happened to notice my iMac keeps waking from sleep every 2 minutes from 2:00 in the morning. The screen doesn't come on, I hear the harddrive power up for a little while then stop, 2 minutes later it happens again. I d

  • Upgrade CRS from 10g to 11g

    Hi, I am going to upgrade CRS from 10g to 11g. Can i upgrade CRS only from 10g to 11g? Thanks,

  • Object serialized Problem

    Hi there, I got one window mapped to a object ( say ObjectA ). The window contains textbox, droplist. I then serialized the object (ObjectA) to a file and read it back to memory. Everything seems fine except the droplist shown the wrong data. e.g. Th