Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

github.com/aproram/xamarin-aprtextfieldsuggestions

Package Overview
Dependencies
Alerts
File Explorer
Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

github.com/aproram/xamarin-aprtextfieldsuggestions

  • v0.0.0-20180721063412-f04a7955524b
  • Source
  • Go
  • Socket score

Version published
Created
Source

Xamarin-APRTextFieldSuggestions

Xamarin.iOS Autocomplete suggestions for UITextfield in iOS

Screenshot

APRTextFieldSuggestions_screenshot

Installation

Simply import the file APRTextFieldSuggestions.c to your Xamarin.iOS project

Usage

In your ViewController

You can setup your suggestions in 4 simple steps inside your view controller

//1-Suggestions List To Look At
string[] theList = {"Alabama",
              "Alaska",
              "Arizona",
              "Arkansas",
              "California",
              "Colorado",
              "Connecticut",
              "District Of Columbia"
            };
            
//2-Initialize Suggestions Provider
APRTextFieldSuggestions suggestionsProvider1 = new APRTextFieldSuggestions();

//3-Set Some Optional Styling Properties 
suggestionsProvider1.suggestionRowHeight = 30;
suggestionsProvider1.suggestionFontSize = 13;
suggestionsProvider2.suggestionsBackgroundColor = UIColor.DarkGray;
suggestionsProvider2.suggestionTextColor = UIColor.White;
//4-Add Your Suggestions To Your Textfield
suggestionsProvider1.initializeSuggestions(myTextField, theList);

Public Proberties

UITextField theTF;
public float suggestionRowHeight = 30;
public float suggestionFontSize = 13;
public UIColor suggestionTextColor = UIColor.Gray;

public float suggestionsMaxVisibleCount = 3.4f;
public float suggestionsBackgroundAlpha = 0.9f;
public UIColor suggestionsBackgroundColor = UIColor.White;

public iAPRSuggestionsTextFieldDelegate myDelegate;

Delegate Methods

interface iAPRSuggestionsTextFieldDelegate
{
    void suggestionTextField_userSelectedItem(int itemIndex, string itemVal);
}

Author

Aproram Feel free to contact me for any inquiries or help :)

FAQs

Package last updated on 21 Jul 2018

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc