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

Alberto Iglesias

Well-Known Member
Licensed User

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



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






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


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



 

Attachments

Last edited:

JohnC

Well-Known Member
Licensed User
BTW, what program did you use to display the iphone screen to the right and be able to interact with it?
 

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)
 

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
 
Top