Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6475165
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T06:40:21+00:00 2026-05-25T06:40:21+00:00

how to remove a Item after add this in the Pages-Array? I tried it

  • 0

how to remove a Item after add this in the Pages-Array?

I tried it here:

 launcherView.pages = [NSArray arrayWithObjects:
                      [NSArray arrayWithObjects:
                       [self launcherItemWithTitle:@"Pers. Starts."
                                             image:@"bundle://animexx-72.png"
                                               URL:@"tt://startseite"],
                       [self launcherItemWithTitle:@"ENS"
                                             image:@"bundle://animexx-72.png"
                                               URL:@"tt://ens"],
                       [self launcherItemWithTitle:@"Kontakte"
                                             image:@"bundle://animexx-72.png"
                                               URL:@"tt://kontakte"],
                       [self launcherItemWithTitle:@"Einstellungen"
                                             image:@"bundle://animexx-72.png"
                                               URL:@"tt://einstellungen"],
                       [self launcherItemWithTitle:@"Admin"
                                             image:@"bundle://animexx-72.png"
                                               URL:@"tt://admin"]
                       , nil]
                      , nil];


//Check if ENS-Admin enabled
if ([SelfViewHandler IsENSAdminSet])
{
    TTLauncherItem* item;
    item = [launcherView itemWithURL:@"tt://admin"];

    [launcherView removeItem:item animated:false];
}

But the Item is still there.
(If-Clause is true, checked it in Debugger and Breakpoint)

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-25T06:40:21+00:00Added an answer on May 25, 2026 at 6:40 am

    The object item = [launcherView itemWithURL:@"tt://admin"] is actually doesn’t exists in your TTLauncherView and isn’t being removed because of that.

    Each object gets a reference when it’s being created so the object you’re adding when creating the pages array and the object you’re creating in your if statement are different.

    In order to remove an object from TTLauncherView, you need a reference to it. You can do something like that:

    TTLauncherItem* item = [self launcherItemWithTitle:@"Admin"
                                             image:@"bundle://animexx-72.png"
                                               URL:@"tt://admin"]
    
    launcherView.pages = [NSArray arrayWithObjects:
                          [NSArray arrayWithObjects:
                           [self launcherItemWithTitle:@"Pers. Starts."
                                                 image:@"bundle://animexx-72.png"
                                                   URL:@"tt://startseite"],
                           [self launcherItemWithTitle:@"ENS"
                                                 image:@"bundle://animexx-72.png"
                                                   URL:@"tt://ens"],
                           [self launcherItemWithTitle:@"Kontakte"
                                                 image:@"bundle://animexx-72.png"
                                                   URL:@"tt://kontakte"],
                           [self launcherItemWithTitle:@"Einstellungen"
                                                 image:@"bundle://animexx-72.png"
                                                   URL:@"tt://einstellungen"],
                           adminLauncherItem
                           , nil]
                          , nil];
    
    
    //Check if ENS-Admin enabled
    if ([SelfViewHandler IsENSAdminSet])
    {
        [launcherView removeItem:adminLauncherItem animated:false];
    }
    

    It makes sense to have a function that removes a launcher item based on the URL, like

    - (void)removeItemWithURL:(NSURL*)url animated:(BOOL)animated {
    

    (but there isn’t yet 🙂 )

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm getting this error after add/remove item to/from cart. Add to Cart button does
I have a master-child tables. User can add/remove childs after selecting the master item/entity.
How to remove item from a list view? how to reload the list after
Can you remove an item from a List<> whilst iterating through it? Will this
I remove item from ArrayList in foreach loop and get follwing exception. Collection was
How can I remove a item from list of KeyValuePair?
Is there a way to remove an item from a listbox based on a
In my base page I need to remove an item from the query string
Or more generally, how do I remove an item from a colon-separated list in
Basically, I would like to remove an item from a list whilst inside the

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.