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 6700515
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T06:49:26+00:00 2026-05-26T06:49:26+00:00

Actually I am new to iphone development and want to implement Toast for this

  • 0

Actually I am new to iphone development and want to implement Toast for this I find a stackoverflow post
Android Toast in iPhone?

Now the problem is, here a code is given in one post for Toast but I donot know that in which type of file i need to write this code to work…

using System;
using System.Drawing;
using MonoTouch.UIKit;
namespace General
{

    public class ToastSettings
    {
        public ToastSettings ()
        {
            this.Duration = 500;
            this.Gravity = ToastGravity.Center;
        }

        public int Duration
        {
            get;
            set;
        }

        public double DurationSeconds
        {
            get { return (double) Duration/1000 ;}

        }

        public ToastGravity Gravity
        {
            get;
            set;
        }

        public PointF Position
        {
            get;
            set;
        }    

    }
}
  • 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-26T06:49:27+00:00Added an answer on May 26, 2026 at 6:49 am

    You code is in Java, and in iPhone development you cant simply add that code in. You will need to convert it into Objective C and use it then. As to where this code will be placed, you can either create a separate file for it and reference it in your delegate or you can simply place this in your delegate itself(not recommended).

    However, looking at the post you linked, you should simply use this: http://code.google.com/p/toast-notifications-ios/wiki/HowToUse

    It has the details and code on how to use Toast in iPhone development and even has the code done up in objective C.

    If you are new to iPhone development I suggest you go through the tutorials:
    https://stackoverflow.com/questions/1939/how-to-articles-for-iphone-development-and-objective-c

    first and learn how to use xcode and Objective C properly. Once you are comfortable with the IDE, I am sure you can code and create your project easily.

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

Sidebar

Related Questions

I'm new to iPhone development, so apologies if this is a silly question, but
I am new in iPhone and in learning phase now a days. Actually i
I'm new with iPhone development. I want to download a pdf using url and
hi everyone i am new to iphone development. Actually i am trying with some
I'm using JSF 2.0 and it's new (actually old, but now incorporated in JSF)
Actually my code is: LinearLayout ll = new LinearLayout(this); ll.setId(i); ll.setLayoutParams(new LayoutParams(LayoutParams.FILL_PARENT,LayoutParams.WRAP_CONTENT)); ll.setPadding(0, 0,
i'm pretty new at using C++ and I'm actually stopped at a problem. I
I'm pretty new to the idea of recursion and this is actually my first
I'm quite new to iphone programming and I want to do the following stuff:
I'm pretty new at this iphone dev stuff and i'm working on some existing

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.