B4i Library ActivityBar - Easy and Beautiful-to-use activity bar for B4i

Discussion in 'iOS Libraries' started by Alberto Iglesias, Jun 14, 2015.

  1. Alberto Iglesias

    Alberto Iglesias Well-Known Member Licensed User

    [​IMG]
    This library was made based on ZAActivityBar

    Installation instructions:

    - Copy the *.a and *.h files into the folder "Libs" in your MAC or in your MAC HOSTED by AnywhereSoftware, normally in "B4i-MacServer\Libs" folder

    -Copy the iActivityBar.xml to your custom libraries folder in B4i
    - Select in your REFERENCED LIBRARIES

    [​IMG]

    Version history:
    V1.0.0 (First public release - Donationware):
    - Initial version

    V1.0.1 (CONVERT TO FULL TO EVERYONE):



    iActivityBar
    Author:
    Alberto Iglesias (alberto@visualnet.inf.br)
    Version: 1
    • ActivityBar
      Events:
      • onInitialized (EventName As String)
      Methods:
      • Dismiss (action As String)
        Hide the Bar
      • DismissAll
        Hide the All Bar
      • Initialize (EventName As String)
        Initializes the object.
      • Show (title As String, action As String)
        Show the Bar
      • ShowWithImage (title As String, action As String, imagepath As String)
        Show the Bar with image
      Properties:
      • Author As String [read only]
        Author of this Library
      • DebugMode As BOOLEAN
        Enable/Disable Debug mode from Library
      • Version As String [read only]
        Library Version


    [​IMG]

    [​IMG]

    References:
    https://github.com/zacaltman/ZAActivityBar


    * This version is fully functional.
    Please consider a simple €10 donation and invite me to a coffee!!!!

    [​IMG]

     

    Attached Files:

    Last edited: Oct 1, 2015
    lonleystar and xulihang like this.
  2. JohnCody

    JohnCody Active Member Licensed User

    Looks nice!
     
  3. JohnCody

    JohnCody Active Member Licensed User

    BTW, what program did you use to display the iphone screen to the right and be able to interact with it?
     
  4. Alberto Iglesias

    Alberto Iglesias Well-Known Member Licensed User

  5. narek adonts

    narek adonts Well-Known Member Licensed User

    I think will be good to have an option to show the Activity bar on Bottom (like now) and also on Top.

    Narek
     
  6. Alberto Iglesias

    Alberto Iglesias Well-Known Member Licensed User

    Perfect! it´s a good tip. I will do it!
     
  7. sureshCentium

    sureshCentium Member Licensed User

    Hi Alberto Iglesias,
    I wanted to use your library with hosted MAC builder but i cant able to use giving error like saying below so pls resolve my problem. I followed the installation instructions as stated above.

    B4i version: 2.00
    Parsing code. (0.00s)
    Compiling code. (0.19s)
    Compiling layouts code. (0.00s)
    Compiling debugger engine code. (8.43s)
    Building Xcode project (0.45s)
    Sending data to remote compiler. Error
    Out: Build settings from command line:
    ARCHS = armv7
    CODE_SIGN_IDENTITY = iPhone
    CONFIGURATION_BUILD_DIR = /Users/administrator/Documents/UploadedProjects//Payload
    OTHER_CODE_SIGN_FLAGS = --keychain
    PRODUCT_NAME = MyFirstProgram
    PROVISIONING_PROFILE = f45e9483-55ce-43db-a8b2-04f37a2ac30d

    === BUILD TARGET B4iProject OF PROJECT B4iProject WITH CONFIGURATION Release ===

    Check dependencies

    Write auxiliary files
    /bin/mkdir -p /Users/administrator/Documents/UploadedProjects//build/B4iProject.build/Release-iphoneos/B4iProject.build
    write-file /Users/administrator/Documents/UploadedProjects//build/B4iProject.build/Release-iphoneos/B4iProject.build/MyFirstProgram-project-headers.hmap
    write-file /Users/administrator/Documents/UploadedProjects//build/B4iProject.build/Release-iphoneos/B4iProject.build/MyFirstProgram-own-target-headers.hmap
    write-file /Users/administrator/Documents/UploadedProjects//build/B4iProject.build/Release-iphoneos/B4iProject.build/MyFirstProgram-all-non-framework-target-headers.hmap
    write-file /Users/administrator/Documents/UploadedProjects//build/B4iProject.build/Release-iphoneos/B4iProject.build/MyFirstProgram-all-target-headers.hmap
    write-file /Users/administrator/Documents/UploadedProjects//build/B4iProject.build/Release-iphoneos/B4iProject.build/MyFirstProgram-generated-files.hmap
    /bin/mkdir -p /Users/administrator/Documents/UploadedProjects//build/B4iProject.build/Release-iphoneos/B4iProject.build/Objects-normal/armv7
    write-file /Users/administrator/Documents/UploadedProjects//build/B4iProject.build/Release-iphoneos/B4iProject.build/Objects-normal/armv7/MyFirstProgram.LinkFileList
    write-file /Users/administrator/Documents/UploadedProjects//build/B4iProject.build/Release-iphoneos/B4iProject.build/MyFirstProgram.hmap

    Create product structure
    /bin/mkdir -p /Users/administrator/Documents/UploadedProjects//Payload/MyFirstProgram.app

    ProcessInfoPlistFile Payload/MyFirstProgram.app/Info.plist B4iProject/B4iProject-Info.plist
    cd /Users/administrator/Documents/UploadedProjects/
    export PATH="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin"
    builtin-infoPlistUtility /Users/administrator/Documents/UploadedProjects//B4iProject/B4iProject-Info.plist -genpkginfo /Users/administrator/Documents/UploadedProjects//Payload/MyFirstProgram.app/PkgInfo -expandbuildsettings -format binary -platform iphoneos -o /Users/administrator/Documents/UploadedProjects//Payload/MyFirstProgram.app/Info.plist

    CompileC build/B4iProject.build/Release-iphoneos/B4iProject.build/Objects-normal/armv7/main.o B4iProject/main.m normal armv7 objective-c com.apple.compilers.llvm.clang.1_0.compiler
    cd /Users/administrator/Documents/UploadedProjects/
    export LANG=en_US.US-ASCII
    export PATH="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin"
    /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -x objective-c -arch armv7 -fmessage-length=0 -fdiagnostics-show-note-include-stack -fmacro-backtrace-limit=0 -std=gnu99 -fobjc-arc -fmodules -fmodules-prune-interval=86400 -fmodules-prune-after=345600 -fbuild-session-file=/var/folders/35/nx43fs8567l9z_wvvpc35snh0000gn/C/org.llvm.clang/ModuleCache/Session.modulevalidation -fmodules-validate-once-per-build-session -Wnon-modular-include-in-framework-module -Werror=non-modular-include-in-framework-module -Wno-trigraphs -fpascal-strings -O0 -Wno-missing-field-initializers -Wno-missing-prototypes -Werror=return-type -Wno-implicit-atomic-properties -Werror=deprecated-objc-isa-usage -Werror=objc-root-class -Wno-receiver-is-weak -Wno-arc-repeated-use-of-weak -Wduplicate-method-match -Wno-missing-braces -Wparentheses -Wswitch -Wunused-function -Wno-unused-label -Wno-unused-parameter -Wunused-variable -Wunused-value -Wempty-body -Wconditional-uninitialized -Wno-unknown-pragmas -Wno-shadow -Wno-four-char-constants -Wno-conversion -Wconstant-conversion -Wint-conversion -Wbool-conversion -Wenum-conversion -Wshorten-64-to-32 -Wpointer-sign -Wno-newline-eof -Wno-selector -Wno-strict-selector-match -Wundeclared-selector -Wno-deprecated-implementations -DNS_BLOCK_ASSERTIONS=1 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS8.4.sdk -fstrict-aliasing -Wprotocol -Wdeprecated-declarations -fvisibility=hidden -Wno-sign-conversion -miphoneos-version-min=7.0 -iquote /Users/administrator/Documents/UploadedProjects//build/B4iProject.build/Release-iphoneos/B4iProject.build/MyFirstProgram-generated-files.hmap -I/Users/administrator/Documents/UploadedProjects//build/B4iProject.build/Release-iphoneos/B4iProject.build/MyFirstProgram-own-target-headers.hmap -I/Users/administrator/Documents/UploadedProjects//build/B4iProject.build/Release-iphoneos/B4iProject.build/MyFirstProgram-all-target-headers.hmap -iquote /Users/administrator/Documents/UploadedProjects//build/B4iProject.build/Release-iphoneos/B4iProject.build/MyFirstProgram-project-headers.hmap -I/Users/administrator/Documents/UploadedProjects//Payload/include -I/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include -I/Users/administrator/Documents/UploadedProjects//build/B4iProject.build/Release-iphoneos/B4iProject.build/DerivedSources/armv7 -I/Users/administrator/Documents/UploadedProjects//build/B4iProject.build/Release-iphoneos/B4iProject.build/DerivedSources -F/Users/administrator/Documents/UploadedProjects//Payload -F../../Libs -MMD -MT dependencies -MF /Users/administrator/Documents/UploadedProjects//build/B4iProject.build/Release-iphoneos/B4iProject.build/Objects-normal/armv7/main.d --serialize-diagnostics /Users/administrator/Documents/UploadedProjects//build/B4iProject.build/Release-iphoneos/B4iProject.build/Objects-normal/armv7/main.dia -c /Users/administrator/Documents/UploadedProjects//B4iProject/main.m -o /Users/administrator/Documents/UploadedProjects//build/B4iProject.build/Release-iphoneos/B4iProject.build/Objects-normal/armv7/main.o

    CompileC build/B4iProject.build/Release-iphoneos/B4iProject.build/Objects-normal/armv7/b4i_main.o B4iProject/b4i_main.m normal armv7 objective-c com.apple.compilers.llvm.clang.1_0.compiler
    cd /Users/administrator/Documents/UploadedProjects/
    export LANG=en_US.US-ASCII
    export PATH="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin"
    /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -x objective-c -arch armv7 -fmessage-length=0 -fdiagnostics-show-note-include-stack -fmacro-backtrace-limit=0 -std=gnu99 -fobjc-arc -fmodules -fmodules-prune-interval=86400 -fmodules-prune-after=345600 -fbuild-session-file=/var/folders/35/nx43fs8567l9z_wvvpc35snh0000gn/C/org.llvm.clang/ModuleCache/Session.modulevalidation -fmodules-validate-once-per-build-session -Wnon-modular-include-in-framework-module -Werror=non-modular-include-in-framework-module -Wno-trigraphs -fpascal-strings -O0 -Wno-missing-field-initializers -Wno-missing-prototypes -Werror=return-type -Wno-implicit-atomic-properties -Werror=deprecated-objc-isa-usage -Werror=objc-root-class -Wno-receiver-is-weak -Wno-arc-repeated-use-of-weak -Wduplicate-method-match -Wno-missing-braces -Wparentheses -Wswitch -Wunused-function -Wno-unused-label -Wno-unused-parameter -Wunused-variable -Wunused-value -Wempty-body -Wconditional-uninitialized -Wno-unknown-pragmas -Wno-shadow -Wno-four-char-constants -Wno-conversion -Wconstant-conversion -Wint-conversion -Wbool-conversion -Wenum-conversion -Wshorten-64-to-32 -Wpointer-sign -Wno-newline-eof -Wno-selector -Wno-strict-selector-match -Wundeclared-selector -Wno-deprecated-implementations -DNS_BLOCK_ASSERTIONS=1 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS8.4.sdk -fstrict-aliasing -Wprotocol -Wdeprecated-declarations -fvisibility=hidden -Wno-sign-conversion -miphoneos-version-min=7.0 -iquote /Users/administrator/Documents/UploadedProjects//build/B4iProject.build/Release-iphoneos/B4iProject.build/MyFirstProgram-generated-files.hmap -I/Users/administrator/Documents/UploadedProjects//build/B4iProject.build/Release-iphoneos/B4iProject.build/MyFirstProgram-own-target-headers.hmap -I/Users/administrator/Documents/UploadedProjects//build/B4iProject.build/Release-iphoneos/B4iProject.build/MyFirstProgram-all-target-headers.hmap -iquote /Users/administrator/Documents/UploadedProjects//build/B4iProject.build/Release-iphoneos/B4iProject.build/MyFirstProgram-project-headers.hmap -I/Users/administrator/Documents/UploadedProjects//Payload/include -I/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include -I/Users/administrator/Documents/UploadedProjects//build/B4iProject.build/Release-iphoneos/B4iProject.build/DerivedSources/armv7 -I/Users/administrator/Documents/UploadedProjects//build/B4iProject.build/Release-iphoneos/B4iProject.build/DerivedSources -F/Users/administrator/Documents/UploadedProjects//Payload -F../../Libs -MMD -MT dependencies -MF /Users/administrator/Documents/UploadedProjects//build/B4iProject.build/Release-iphoneos/B4iProject.build/Objects-normal/armv7/b4i_main.d --serialize-diagnostics /Users/administrator/Documents/UploadedProjects//build/B4iProject.build/Release-iphoneos/B4iProject.build/Objects-normal/armv7/b4i_main.dia -c /Users/administrator/Documents/UploadedProjects//B4iProject/b4i_main.m -o /Users/administrator/Documents/UploadedProjects//build/B4iProject.build/Release-iphoneos/B4iProject.build/Objects-normal/armv7/b4i_main.o
    In file included from /Users/administrator/Documents/UploadedProjects//B4iProject/b4i_main.m:2:
    /Users/administrator/Documents/UploadedProjects//B4iProject/b4i_main.h:2:9: fatal error: 'iActivityBar.h' file not found
    #import "iActivityBar.h"
    ^
    1 error generated.

    CompileC build/B4iProject.build/Release-iphoneos/B4iProject.build/Objects-normal/armv7/LS_main.o B4iProject/LS_main.m normal armv7 objective-c com.apple.compilers.llvm.clang.1_0.compiler
    cd /Users/administrator/Documents/UploadedProjects/
    export LANG=en_US.US-ASCII
    export PATH="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin"
    /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -x objective-c -arch armv7 -fmessage-length=0 -fdiagnostics-show-note-include-stack -fmacro-backtrace-limit=0 -std=gnu99 -fobjc-arc -fmodules -fmodules-prune-interval=86400 -fmodules-prune-after=345600 -fbuild-session-file=/var/folders/35/nx43fs8567l9z_wvvpc35snh0000gn/C/org.llvm.clang/ModuleCache/Session.modulevalidation -fmodules-validate-once-per-build-session -Wnon-modular-include-in-framework-module -Werror=non-modular-include-in-framework-module -Wno-trigraphs -fpascal-strings -O0 -Wno-missing-field-initializers -Wno-missing-prototypes -Werror=return-type -Wno-implicit-atomic-properties -Werror=deprecated-objc-isa-usage -Werror=objc-root-class -Wno-receiver-is-weak -Wno-arc-repeated-use-of-weak -Wduplicate-method-match -Wno-missing-braces -Wparentheses -Wswitch -Wunused-function -Wno-unused-label -Wno-unused-parameter -Wunused-variable -Wunused-value -Wempty-body -Wconditional-uninitialized -Wno-unknown-pragmas -Wno-shadow -Wno-four-char-constants -Wno-conversion -Wconstant-conversion -Wint-conversion -Wbool-conversion -Wenum-conversion -Wshorten-64-to-32 -Wpointer-sign -Wno-newline-eof -Wno-selector -Wno-strict-selector-match -Wundeclared-selector -Wno-deprecated-implementations -DNS_BLOCK_ASSERTIONS=1 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS8.4.sdk -fstrict-aliasing -Wprotocol -Wdeprecated-declarations -fvisibility=hidden -Wno-sign-conversion -miphoneos-version-min=7.0 -iquote /Users/administrator/Documents/UploadedProjects//build/B4iProject.build/Release-iphoneos/B4iProject.build/MyFirstProgram-generated-files.hmap -I/Users/administrator/Documents/UploadedProjects//build/B4iProject.build/Release-iphoneos/B4iProject.build/MyFirstProgram-own-target-headers.hmap -I/Users/administrator/Documents/UploadedProjects//build/B4iProject.build/Release-iphoneos/B4iProject.build/MyFirstProgram-all-target-headers.hmap -iquote /Users/administrator/Documents/UploadedProjects//build/B4iProject.build/Release-iphoneos/B4iProject.build/MyFirstProgram-project-headers.hmap -I/Users/administrator/Documents/UploadedProjects//Payload/include -I/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include -I/Users/administrator/Documents/UploadedProjects//build/B4iProject.build/Release-iphoneos/B4iProject.build/DerivedSources/armv7 -I/Users/administrator/Documents/UploadedProjects//build/B4iProject.build/Release-iphoneos/B4iProject.build/DerivedSources -F/Users/administrator/Documents/UploadedProjects//Payload -F../../Libs -MMD -MT dependencies -MF /Users/administrator/Documents/UploadedProjects//build/B4iProject.build/Release-iphoneos/B4iProject.build/Objects-normal/armv7/LS_main.d --serialize-diagnostics /Users/administrator/Documents/UploadedProjects//build/B4iProject.build/Release-iphoneos/B4iProject.build/Objects-normal/armv7/LS_main.dia -c /Users/administrator/Documents/UploadedProjects//B4iProject/LS_main.m -o /Users/administrator/Documents/UploadedProjects//build/B4iProject.build/Release-iphoneos/B4iProject.build/Objects-normal/armv7/LS_main.o


    Error: ** BUILD FAILED **


    The following build commands failed:
    CompileC build/B4iProject.build/Release-iphoneos/B4iProject.build/Objects-normal/armv7/b4i_main.o B4iProject/b4i_main.m normal armv7 objective-c com.apple.compilers.llvm.clang.1_0.compiler
    (1 failure)
     
  8. Erel

    Erel Administrator Staff Member Licensed User

    The library was not uploaded to the hosted builder as it is not a free library.
     
  9. sureshCentium

    sureshCentium Member Licensed User

    So it mean we need to buy the library first and then use it in my app?
     
  10. Alberto Iglesias

    Alberto Iglesias Well-Known Member Licensed User

    DEAR USERS!!!

    THIS A LITTLE GIFT FROM ME TO ALL B4i USERS.

    The version 1.0.1 is full and no more limitations and no more donation message in this library.

    Erel, can you put in host server for everyone?

    The library version 1.0.1 is in the first post.


    Thanks

    Alberto Iglesias

    PS: Please, like this!
     
    iz0ndg and Erel like this.
  11. sureshCentium

    sureshCentium Member Licensed User

    Thats great Alberto Iglesias, thank you and let me know once it is available so that i can make use of it.
     
  12. Erel

    Erel Administrator Staff Member Licensed User

    Thank you Alberto. It is online now.
     
  13. Alberto Iglesias

    Alberto Iglesias Well-Known Member Licensed User

  14. Erel

    Erel Administrator Staff Member Licensed User

    It will be added in the next time I update this page.
     
  15. fbritop

    fbritop Active Member Licensed User

    Alberto
    This is a nice library, but I think it lacks of a click event (in order to dismiss or take an action).

    May another goodie would be to setup a timer interval on "Show" method, in order to automatically dissapear?

    Good library anyway!
    Thanks
    FBP
     
  16. Alberto Iglesias

    Alberto Iglesias Well-Known Member Licensed User

    Hello FBP,

    Yes... I need to update with some new functions... Right now i´m in vacation, but in my return I do this for all comunity!

    Thanks

    Alberto Iglesias
     
  17. lonleystar

    lonleystar Well-Known Member Licensed User

    Hi Alberto, first at all Merry Xmas. I've a question can U make a little tutorial to write a library in ios because I've no idea how I can start.


    I wish U and All forum Happy New Year

    Best Regards

    G.Salvi
     
Loading...