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

  • SEARCH
  • Home
  • 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 8205667
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T08:20:32+00:00 2026-06-07T08:20:32+00:00

when I import custom classes ,it could be complied without warning or errs.But…you know,it

  • 0

when I import custom classes ,it could be complied without warning or errs.But…you know,it just not work.Any idea?

#import "./myclass/MyClass.h"

static MyClass* myClass=[%c(MyClass) withState:0];

[myClass getDataFromServer];

the funs

- (id)initWithState:(NSUInteger)state
{
  if ((self = [super init])) {
    _stateNow=state;
    _stateToSet=state;
  }
 return self;
}

+ (id)withState:(NSUInteger)state
{
  return [[[self alloc] initWithState:state] autorelease];
}
- (void)getDataFromServer{
UIAlertView* av = [[UIAlertView alloc] initWithTitle:NSLocalizedString(@"", nil)
                              message:@"Connection fail"
                              delegate:self
                              cancelButtonTitle:@"ok"
                              otherButtonTitles:nil,
                              nil] ;
av.frame = CGRectMake( 0, 0, 330, 480 );
av.tag=kScreenTag;
    [av show];
}
  • 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-06-07T08:20:34+00:00Added an answer on June 7, 2026 at 8:20 am

    I get it sloved.

    static MyClass* myClass=[MyClass withState:0];

    And makefile should be changed.

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

Sidebar

Related Questions

I've got several custom classes. Let's call them Character, which is supposed to import
I create a custom import and export, at the moment as an external script
I have the following custom event: package com.un.photoManager.events { import flash.events.Event; import mx.collections.ArrayCollection; public
this is my custom dialog class: package com.WhosAround.Dialogs; import com.WhosAround.AppVariables; import com.WhosAround.R; import com.WhosAround.AsyncTasks.LoadUserStatus;
I'm implementing a custom UIButton with minimal functionality. The .h file: #import <Foundation/Foundation.h> @interface
I wonder if the flash.utils.getDefinitionByName(name:String):Class works with custom classes? Is there a problem if
You know how Moose automatically turns on strict and warnings during import? I want
No compiler errors, but can't trace into instance methods of my classes. I'm pretty
I'd like to JSON-serialize my own custom classes. I'm working in Objective-C / iOS5.
I have an assembly that contains classes that import a number of classes from

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.