UITabBarItem Category giving error on Device | Debug ONLY!?!?

Hello guys! I have an issue that is puzzling me. I've created a category for UITabBarItem and it looks like this:
@implementation UITabBarItem (UITabBarItemCategory)
-(void)setImage:(UIImage*)image{
if(image == NULL){ //might be called with NULL argument
return;
_image = [image retain];
_selectedImage = [image retain];
@end
And here is my implementation in my ViewController subclass:
#import "MainScreenViewController.h"
#import "UITabBarItemCategory.h"
@implementation MainScreenViewController
- (id)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil {
if (self = [super initWithNibName:nibNameOrNil bundle:nibBundleOrNil]) {
// Initialization code
self.title = NSLocalizedString(@"main_tab_title","Main screen tab button");
[self.tabBarItem setImage:[UIImage imageNamed:@"TabBarItemMain.png"]];
return self;
The intention of this is to customize the images displayed in the UITabBarController because the blue chrome color don't fit inside my design. It works like a champ in the Simulator however, when I try to run this in my iPhone device using the "Device|Debug" method, I get the following compilation error:
"_OBJC_IVAR_$_UITabBarItem._image", referenced from:
_OBJC_IVAR_$_UITabBarItem._image$non_lazy_ptr in UICategory.o
"_OBJC_IVAR_$_UITabBarItem._selectedImage", referenced from:
_OBJC_IVAR_$_UITabBarItem._selectedImage$non_lazy_ptr in UICategory.o
ld: symbol(s) not found
collect2: ld returned 1 exit status
Build failed (2 errors)
Could this be an Xcode bug? Am I doing something wrong?
Conceptually, I should be able to access these private variables because I'm extending UITabBarItem.
The other option will be to subclass the UITabBarItem and use it's drawRect method, however I don't know how to init the object because it's managed by a ViewController.
Any tips and suggestions will be highly appreciated.
-ML

I am having the same problem.
I have sublassed UITabBarController
DATabBarController.h
#import <UIKit/UIKit.h>
@interface DATabBarController : UITabBarController {
@property (nonatomic,readonly) UIView *containerView;
@property (nonatomic,readonly) UIView* viewControllerTransitionView;
@end
DATabBarController.m
#import "DATabBarController.h"
@implementation DATabBarController
- (id)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil {
if (self = [super initWithNibName:nibNameOrNil bundle:nibBundleOrNil]) {
// Initialization code
return self;
-(UIView*) viewControllerTransitionView
return _viewControllerTransitionView;
-(UIView*) containerView
return _containerView;
- (void)dealloc {
[super dealloc];
@end
The error I get is:
"_OBJC_IVAR_$_UITabBarController._viewControllerTransitionView", referenced from:
_OBJC_IVAR_$_UITabBarController._viewControllerTransitionView$non_lazy_ptr in DATabBarController.o
"_OBJC_IVAR_$_UITabBarController._containerView", referenced from:
_OBJC_IVAR_$_UITabBarController._containerView$non_lazy_ptr in DATabBarController.o
ld: symbol(s) not found
collect2: ld returned 1 exit status
The bizarre part is that it works quite nicely on the Simulator, but on the iPhone it won't compile.
I found this statement on Apple's documentation:
"This class is not intended to be subclassed."
Link: [UITabBarController|http://developer.apple.com/iphone/library/documentation/UIK it/Reference/UITabBarController_Class/Reference/Reference.html]
Why would it work in the Simulator?
If either of you figured it out, I would be great to learn what you have discovered.
Thanks,
James

Similar Messages

  • OBIEE 10g iBots SA System error : No Devices found for User ###

    Hi All,
    I have implemented SA System in my RPD as I wanted to send emails to obi/non-obi users.
    But its giving error - No Devices found for User ....
    I found this error in S_NQ_ERR_MSG table.
    I have an entry in SA_User table, and when I login to OBI using same user, I can see my delivery profile automatically set as expected because of SA System Implementation.
    But its not working when I want to send mail to same user using iBots conditional request.
    Please advise what I am doing wrong here??
    Thanks in Advance !!..
    Well .. now the No devices issue is resolved if i select the checkbox for Interactive Dashboard and Active Delivery Profile in the Destination tab of iBot.
    But still No mail received :(
    Getting below data from S_NQ_ERR_MSG table.
    ERROR_MSG_TEXT
    1:6:Device16:/shared/_ibots/19:6045043489:6045043489:dashboard7:ibotapi6:9719.0:_:
    2:6:Device16:/shared/_ibots/19:6058035879:6058035879:dashboard7:ibotapi6:9719.0:_:
    Please help !!!
    Edited by: 995726 on Apr 11, 2013 7:04 AM

    Solved !!! :)
    Its was a small mistake..
    The SA System columns in Presentation and logical area should be exactly as expected.
    In my case, the correct column should be 'Time Zone' but I had it as 'Timezone'. :)
    Small mistakes are hard to find... neways.. hope this will help some another soul ;)
    Cheersss !!!

  • USB is not recognizing the device and giving error 10

    My PC USB is not recognizing the device (iphone) and giving error 10.. The USb is malfunctioning but ipod is getting connected easliy

    Try DFU Mode Restore. Open iTunes on computer. Connect iPhone to computer with USB cable. Hold both Home and Power button, after exactly 10 seconds release the Power Button, keep holding the Home button until iTunes recognizes iPhone in Recovery Mode, usually about 20 seconds time. If the iPhone screen is black, blank this is DFU Mode. Click the Restore button of iTunes.

  • Error on Device Access API class/interface import

    Hi,
    I have followed https://apex.oracle.com/pls/apex/f?p=44785:141:128148408213710::::P141_PAGE_ID,P141_SECTION_ID:144,1032#prettyPhoto/1/ video tutorial to set up Java ME Embedded development environment in my Windows system and I have chosen Raspberry PI as embedded platform for ME applications.
    I thought of experimenting on Pi’s GPIO header to control a LED through a Switch. But import statement for com.oracle.deviceaccess.PeripheralConfig is giving error in NetBeans IDE and there is no Java ME library containing this interface in the ME SDK installation directory so that I can include that in project classpath to get rid of this error.
    Where can I download the JAR for Device Access API?
    Please suggest…
    Thank you.

    Thank you for your reply.
    I could successfully execute ‘blinking LED’ application on Raspberry PI, I have done this using DeviceManager class, GPIOPin interface present in device-io_1.0.jar which has come with ME SDK installation (C:\Java_ME_platform_SDK_8.0\lib).
    But https://apex.oracle.com/pls/apex/f?p=44785:141:10585690084130::::P141_PAGE_ID,P141_SECTION_ID:144,1033#prettyPhoto/2/ demonstrates the same application by using classes and interfaces present in com.oracle.deviceaccess package (for eg, com.oracle.deviceaccess.PeripheralManager, com.oracle.deviceaccess.gpio.GPIOPin) and the import on the same is not working in my IDE (compile time error).
    I have used below software installers in a Windows7 system for development environment set up:
    Java SE SDK: jdk-8u11-windows-x64.exe
    Java ME SDK: oracle-jmesdk-8-0-rr-win32-bin.exe
    NetBeans all-in-one bundle: netbeans-8.0-windows.exe
    NetBeans plugins for Java ME: oracle-jmesdk-8-0-rr-nb-plugins.zip
    I have used only above installers.Have I missed anything during development environment setup??
    Please suggest further…
    Thanks

  • Video import problem from iphone5 to PC giving error

    Hi evereyone,
                      I have iphone 5. I try to import my videos but am not able to import all, its giving error. I tried also using windows live photo still same prob. the imported videos have problem in playing. I tried with vlc, quick time, the frames are broken and audio video lag. Please help me how i can import all and rum smoothly.

    Ilan_B wrote:
    Every time I plug my iphone 5 into the laptop (using windows 7) the easiest way is to right click on the portable device (iphone icon) and import to my pictures, BUT every time I do this it wants to import ALL photos and videos.
    And when you do this, it should ask if you want to import the pictures that have already been imported. Select No.
    Then, after you import, the photos should be deleted from the Camera Roll.
    After the photos are imported and deleted from the Camera Roll, you can import using iTunes, only the photos you want on the iPhone.

  • IW32- order-print is giving error for particular User.

    Dear Friends,
    IW32- order-print is giving error for particular User and output type.  Debugging authorization restricted on the system, hence I canu2019t trace out the problem. If anybody comes across such issues, please reply to the post.
    Thanks In Advance for your reply.
    Anil Dasari
    Thanks In Advance.

    Hi,
    Information about dump:
    1. User and Transaction:
    Runtime Errors         MESSAGE_TYPE_X
    Date and Time          06.05.2011 10:47:40
         MM Used. 13116304
         MM Free. 3639760
    User and Transaction
         Client.............. 700
         User................ "BLADEF01"
         Language key........ "N"
         Transaction......... "IW32 "
         Transactions ID..... "4DC387ECA12B684DE10000001A5B1803"
         Program............. "/MRSS/SAPLRSG_PM_ORDER"
         Screen.............. "SAPLCOIH 3000"
         Screen line......... 33
    Information on where terminated
         Termination occurred in the ABAP program "/MRSS/SAPLRSG_PM_ORDER" - in
          "/MRSS/RSG_MAINTAIN_MRS".
         The main program was "SAPLCOIH ".
         In the source code you have the termination point in line 441
         of the (Include) program "/MRSS/LRSG_PM_ORDERU04".
    2. Info. Where it got terminated.
    Information on where terminated
        Termination occurred in the ABAP program "/MRSS/SAPLRSG_PM_ORDER" - in
         "/MRSS/RSG_MAINTAIN_MRS".
        The main program was "SAPLCOIH ".
        In the source code you have the termination point in line 441
        of the (Include) program "/MRSS/LRSG_PM_ORDERU04".
    3. How to correct the error.
    How to correct the error
        Probably the only way to eliminate the error is to correct the program.
        If the error occures in a non-modified SAP program, you may be able to
        find an interim solution in an SAP Note.
        If you have access to SAP Notes, carry out a search with the following
        keywords:
        "MESSAGE_TYPE_X" " "
        "/MRSS/SAPLRSG_PM_ORDER" or "/MRSS/LRSG_PM_ORDERU04"
        "/MRSS/RSG_MAINTAIN_MRS"
        If you cannot solve the problem yourself and want to send an error
        notification to SAP, include the following information:
        1.1. The description of the current problem (short dump)
           To save the description, choose "System->List->Save->Local File
        (Unconverted)".
        2.2. Corresponding system log
           Display the system log by calling transaction SM21.
           Restrict the time interval to 10 minutes before and five minutes
        after the short dump. Then choose "System->List->Save->Local File
        (Unconverted)".
        3.3. If the problem occurs in a problem of your own or a modified SAP.
    I have been searching for notes recently implemented for IW32.
    Thanks and Regards,
    ANIL DASARI

  • Item Open Interface giving error for Org Assignment

    We ran the MTL_SYSTEMS_ITEMS_INTERFACE & loaded all the items at master level.
    We are having issues in setting at Org level. Cant figure out what the issue as only few records gets assigned & then garbage sets in for remaining records. An SR has been raised & the tech support representative was saying that UOM's are different at master & org levels. Never heard of this issue earlier. I have worked with UOM's different at Master/Org levels.
    The UOM's are different at Master & Org Level and in some cases the UOM are different for different Orgs. Attribute Control for Primary/Sec UOM is at Org level. The UOM's belong to the same UOM Class. There are standard conversions defined for all these UOMs.
    Any pointers for quick resolution ?

    Pl do not post duplicates - Item Open Interface giving error for Org Assignment

  • How to set up on device debuging with J2ME SDK 3.0 and window mobile 6.5?

    I got some infomation about setting up on device debuging in J2ME SDK 3.0 with real device(e.g samsung windown mobile B7330). When I start debuging on device, I got exception when open RMS
    javax.microedition.rms.RecordStoreException: error opening record store fileHere my code:
    public void saveProfile() {
            byte[] data = toByteArray();
            try {
                rs = RecordStore.openRecordStore("kunkunProfile", true);
                for (RecordEnumeration e = rs.enumerateRecords(null, null, false); e.hasNextElement();) {
                    int id = e.nextRecordId();
                    rs.deleteRecord(id);
                rs.addRecord(data, 0, data.length);
                rs.closeRecordStore();
            } catch (Exception ex) {
                System.out.println("Exception in OpenRecordStore..." + ex.getMessage());
                try {
                    rs.addRecord(data, 0, data.length);
                    rs.closeRecordStore();
                } catch (Exception e) {
                ex.printStackTrace();
        }Anybody help me? I am stuck here.

    Hi dominikg,
    At first, You can try to restart the device-manager from system tray.
    If it doesn't help, then try the following:
    - stop the device manager
    - Remove c:\Docement and Settings\<your User>\javame-sdk folder.
    - Ran the device manager from <SDK>/bin directory
    - try to debug again.
    Did you tried to change port 51307 to another.
    Early access build had some problems with device manager, I hope that final release will be better :)
    BR,
    Igor

  • Giving error while creating a sales contact for the previous year (2008)

    Hi Friends,
    We are currently with SP12. When we try to create a sales contract for the previous year it is giving error like "Schedule line is for the item 100 cannot be after the order's latest delivery date".
    i tried debugging and found that that there is a rule created for this (in SP12). I commented the rule and tried to create a contract but, again got an error "Error while saving". This error I can't catch while debugging.
    I even didn't find where the schedule line date and header cancel dates are set so that I can change the dates manually.
    If any one has any idea, kindly help me.
    Best regards,
    Swarna Seeta

    Hi Wolfhard,
    Thanks for the reply.
    You are right and I have uncommented the line which assigns true to the return value and the contract got saved now.
    Thank you so much.
    I just want to know whether commeting this rule effects any of the functionalities of the sales contract.
    Best regards,
    Swarna Seeta

  • FM SSF_CLOSE failing and giving error message while printing a smartform

    Hi,
    for language spanish the smartform is not getting printed for output type SG11 but for english it is getting printed? What could be the reason? I debugged and found that SSF_CLOSE is failing and giving error message.
    Thanks and regards,
    AP.

    Hi Aparajita,
    for changing from one languages to another translations in SE63 is to be done, either search on SCN for using SE63 , or atleast see these wiki help .
    Transaction SE63 - Translation Tools for Translators (BC-DOC-TTL) - SAP Library
    Transaction SE63 (SAP Library - Translation Tools for Translators (BC-DOC-TTL))

  • U530 Touch - Audio DRIVER ERROR - This device cannot start (Code 10) - Windows 7

    U530 - High definition audio device - ERROR - This device cannot start (Code 10) Windows 7, please see the picture
    Picture link (hosted on photobucket.com)
    I got all drivers up to date including the BIOS, everything is working fine (the sound works, microphone works...) but this error is kind of annoying to my eyes so if anyone know how to fix it please help.
    I tried to uninstall this and let windows update install it again => not worked, same problem.
    I tried to re-install the Realtek driver (uninstall - restart machine - install - restart machine) => same problem
    And another probelm which has not been solved yet is the Bluetooth icon keep blinking on battery mode (windows 7), you can see more in this thread

    What kind of reinmstall did you perform?  If you used the recovery media, then this will be pretty simple. Boot to the recovewry media again and this time select the Reinstall drivers and applications option. Find the audio driver on the list of available drivers, put a tick in the box to its left and then click on the install button in the lower right hand corner of the window. The driver will be installed.  Your list will be different than the following one, but this is only an example. 

  • BAPI_ALM_NOTIF_LIST_PARTNER working perfectly in R/3 giving error in XI

    Hi all,
    the above BAPI working fine in R/3. The Same inputs are passed but it is giving error. The input and output are given below in XML format as it is handled in XI:
    Input message
    <?xml version="1.0" encoding="UTF-8" ?>
    - <ns1:BAPI_ALM_NOTIF_LIST_PARTNER xmlns:ns1="urn:sap-com:document:sap:rfc:functions">
      <COMPLETE>x</COMPLETE>
      <NOTIFICATION_DATE>2008-08-08</NOTIFICATION_DATE>
      <PARTNER>0000000001</PARTNER>
      <PARTNERFUNCTION>vw</PARTNERFUNCTION>
      <NOTIFICATION />
      </ns1:BAPI_ALM_NOTIF_LIST_PARTNER>
    output message
      <?xml version="1.0" encoding="UTF-8" ?>
    - <rfc:BAPI_ALM_NOTIF_LIST_PARTNER.Response xmlns:rfc="urn:sap-com:document:sap:rfc:functions">
    - <RETURN>
      <TYPE>E</TYPE>
      <CODE>IM718</CODE>
      <MESSAGE>E718 Only specify partner function together with partner number</MESSAGE>
      <LOG_NO />
      <LOG_MSG_NO>000000</LOG_MSG_NO>
      <MESSAGE_V1 />
      <MESSAGE_V2 />
      <MESSAGE_V3 />
      <MESSAGE_V4 />
      </RETURN>
      <NOTIFICATION />
      </rfc:BAPI_ALM_NOTIF_LIST_PARTNER.Response>
    Can any body help in resolving this problem please.
    Regards,
    Venkat

    Thank you amrute for your reply. You are right we do faced similar issues in many other occations and sent exact data and could resolve the issues. In this case also we have given in exact format for all fields. Date format as given in this case is same as what was given in another working XI scenario. However I look at the data type of date to be sure.
    As you see the message is regarding partner and partner function. If you have any other point of view may please be indicated.
    Regards,
    Venkat

  • Intel Mini DVD+RW re-burns fail: 4/03/00 Hardware Error, Peripheral device

    I can't re-write DVD+RW discs on my Intel Mini. The log says:
    Backup: Burn sense: 4/03/00 Hardware Error, Peripheral device write fault
    Backup: Burn error: 0x80020022 The device failed to respond properly, unable to recover or retry.
    It happends with every Philips 4x DVD+RW I have after first burn. Also the log says it is trying to burn at 47x speed. Could this be why it is so noisy - it spins up like a rocket at 5 second intervals and then the disks can't be ejected.
    Backup: Requested burn speed was 47x, actual burn speed is 4x.
    Is this a sign of a bug or just an optimistic Backup?

    I'm 99.99% sure this is an Intel Mini Superdrive problem now. I think it is incompatible with the Philips DVD+RW media. I will try to get new +RW media soon and see if I get joy with other formats.
    I have taken the exact same media from the same pack and I can burn > erase FIVE times on the same disk, and not a single problem yet on my PPC G4 mini. I can only dream of doing this cycle once on my Intel Mini.
    Intel mini (OS X 10.4.7) has:
    Vendor Product Rev
    MATSHITA DVD-R UJ-846 FM3J
    PPC (OS X Server 10.4.7) mini has:
    Vendor Product Rev
    MATSHITA DVD-R UJ-845 D8PB
    What's more the PPC mini makes almost zero noise, only one burst of quier "roar" near the start of erase. Contrast this to the constantly 5s roaring cycle that makes you raise your voice on the intel mini.
    I believe my Intel Mini is either faulty or there is a firmware issue with the drive.
    Can somebody else try Philips 4x DVD+RW discs in an Intel Core Duo and report their drive info?
    Thanks in advance

  • Query Saving takes long time and giving error

    Hi Gurus,
    I am creating one query that have lot of calculations (CKF & RKF).
    When I am trying to save this query it is taking long time and it is giving error like RFC_ERROR_SYSTEM_FAILURE, Query Designer must be restarted, further work not possible.
    Please give me the solution for this.
    Thanks,
    RChowdary

    Hi Chowdary,
    Check the following note: 316470.
    https://websmp130.sap-ag.de/sap(bD1lbiZjPTAwMQ==)/bc/bsp/spn/sapnotes/index2.htm?numm=316470
    The note details are:
    Symptom
    There are no authorizations to change roles. Consequently, the system displays no roles when you save workbooks in the BEx Analyzer. In the BEx browser, you cannot move or change workbooks, documents, folders and so on.
    Other terms
    BW 2.0B, 2.0A, 20A, 20B, frontend, error 172, Business Explorer,
    RFC_ERROR_SYSTEM_FAILURE, NOT_AUTHORIZED, S_USER_TCD, RAISE_EXCEPTION,
    LPRGN_STRUCTUREU04, SAPLPRGN_STRUCTURE, PRGN_STRU_SAVE_NODES
    Reason and Prerequisites
    The authorizations below are not assigned to the user.
    Solution
    Assign authorization for roles
    To assign authorizations for a role, execute the following steps:
    1. Start Transaction Role maintenance (PFCG)
    2. Select a role
    3. Choose the "Change" switch
    4. Choose tab title "Authorizations"
    5. Choose the "Change authorization data" switch
    6. Choose "+ Manually" switch
    7. Enter "S_USER_AGR" as "Authorization object"
    8. Expand "Basis: Administration"/"Authorization: Role check""
    9. From "Activity" select "Create or generate" and others like "Display" or "Change"
    10. Under "Role Name", enter all roles that are supposed to be shown or changed. Enter "*" for all roles.
    11. You can re-enter authorization object "S_USER_AGR" for other activities.
    Assign authorization for transactions
    If a user is granted the authorization for changing a role, he/she should also be granted the authorization for all transactions contained in the role. Add these transaction codes to authorization object S_USER_TCD.
    1. Start the role maintenance transaction (PFCG).
    2. Select a role.
    3. Click on "Change".
    4. Choose the "Authorizations" tab.
    5. Click on "Change authorization data".
    6. Click on "+ manually".
    7. Specify "S_USER_TCD" as "Authorization object".
    8. Expand "Basis - Administration"/"Authorizations: Transactions in Roles".
    9. Under "Transaction", choose at least "RRMX" (for BW reports), "SAP_BW_TEMPLATE" (for BW Web Templates), "SAP_BW_QUERY" (for BW Queries and/or "SAP_BW_CRYSTAL" (for Crystal reports) or "*". Values with "SAP_BW_..." are not transactions, they are special node types (see transaction code NODE_TYPE_DEFINITION).
    Using the SAP System Trace (Transaction ST01), you can identify the transaction that causes NOT_AUTHORIZED.
    Prevent user assignment
    Having the authorization for changing roles, the user is not only able to change the menu but also to assign users. If you want to prevent the latter, the user must loose the authorization for Transactions User Maintenance (SU01) and Role maintenance (PFCG).
    Z1>Note
    Refer to Note 197601, which provides information on the different display of BEx Browser, BEx Analyzer and Easy Access menu.
    Please refer to Note 373979 about authorizations to save workbooks.
    Check in the transaction ST22 for more details on the Query designer failure or query log file.
    With Regards,
    Ravi Kanth.
    Edited by: Ravi kanth on Apr 9, 2009 6:02 PM

  • 75% of overhead to be loaded on WIP. System giving error: Msg No. KJ333

    Hello Experts,
    We are executing WIP (TCode: KKAX). We have load only 75% of the overhead. Hence for this, we have maintained 3 things ReqToCap - OVH,
    OptToCap - OVH and % OvhToCap as 75%.
    However, system is giving error. Refer Screenshot KKAX Error - 1. Refer my setting Screenshot - KKAX Config1
    Since it was multiple assignment error, I tried removing "ReqToCap" It gave me other error. Refer Screenshot KKAX Config2
    Please help me, how to achieve this requirement.
    Deepak

    Dear Deepak
    Your OKGB screen should look like this:
    Kindly update, after changes did it wok or not.
    Regards
    Rajneesh Saxena

Maybe you are looking for

  • Availability of 1.4.1_01 on Win?

    Anybody know or heard any estimate of when 1.4.1_01 on windows will be available? We're exploring the CORBA support as a new area of java use for us, and have hit bug 4750641. IDLJ in some cases produces code that uses the Object.clone method on a St

  • Problem with applying fills & strokes to grouped objects in Illustrator CC

    I have this problem that I deal with everyday & I can't figure out how to fix it. I am always struggling with applying fills & strokes (or changing fills & strokes). It seems like I always have to ungroup the objects first (even if I never grouped th

  • Brush preview much smaller in Photoshop CC 2014...how to make bigger?

    Hi There, I noticed in the new version of photoshop CC 2014 that the brush preview size in the brush window is much smaller then before. Is there anyway of making this bigger? Any help or recommendation would be awesome. Thanks!

  • Windows Errors when updating IPOD

    When updating my IPOD, ITunes comes up with error message below "iTunes has encountered a problem and needs to close. We are sorry for the inconvenience" - and then wants to send an error report off to Microsoft I have updated the latest version of I

  • New Column Still Defaulting To Value From Deleted Column With Same Name

    This is strange. I had a managed metadata column called "Document Category" attached to multiple content types and set to a default value (different in each library). Then I deleted the column (all instances from libraries and references from content