gavinkwoe / beeframework Goto Github PK
View Code? Open in Web Editor NEW[Experimental] A semi-hybrid framework that allows you to create mobile apps using Objective-C and XML/CSS
License: MIT License
[Experimental] A semi-hybrid framework that allows you to create mobile apps using Objective-C and XML/CSS
License: MIT License
与官方版本冲突。不知道你是不是有手动修改了ASIHTTPRequest的代码?
希望能将External下面的都采用官方版本。
clang: error: no such file or directory: '/Users/mac/Documents/BeeFramework/framework/mvc/view/template/parsers/Bee_UITemplateParserXMLImpl_v2.m'
clang: error: no input files
Command /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang failed with exit code 1
set bee.ui.config.ASR = YES;
connect your iphone with MAC, and run example on device, it reports:
CLTilesManagerClient: XPC_ERROR_CONNECTION_INVALID!
and
EXC_BAD_ACCESS code =1
when set ASR=NO, all errors gone.
Undefined symbols for architecture armv7:
"OBJC_CLASS$_BeeUIApplication", referenced from:
objc-class-ref in Bee_Service.o
"OBJC_CLASS$_BeeViewModel", referenced from:
OBJC_CLASS$_BeePagingViewModel in Bee_PagingViewModel.o
OBJC_CLASS$_BeeStreamViewModel in Bee_StreamViewModel.o
"OBJC_METACLASS$_BeeViewModel", referenced from:
OBJC_METACLASS$_BeePagingViewModel in Bee_PagingViewModel.o
OBJC_METACLASS$_BeeStreamViewModel in Bee_StreamViewModel.o
ld: symbol(s) not found for architecture armv7
clang: error: linker command failed with exit code 1 (use -v to see invocation)
查看了具体代码 问题在
这里 不知道怎么办了
CGRectFromString 进行了错误的格式解析。不知道是过期了还是另有用处。
现在的格式应该是类似这样:{{1, 2}, {3, 4}}
测试代码:
CGRect rc = {{1,2},{3,4}};
INFO(@"test %@",NSStringFromCGRect(rc));
rc = CGRectFromString(NSStringFromCGRect(rc));
INFO(@"test %@",NSStringFromCGRect(rc));
may be change like this:
举例:
现有底部条两个按钮,点击时,添加或移除image的active样式,来显示改变选中状态下图片和文字高亮。
/active style/
.active+.item-text{color:#7dbdd5;}
.item-icon-me.active{image-src:url(footer_me_active.png);}
.item-icon-setting.active{image-src:url(footer_setting_active.png);}
.m文件中:
(PS:尝试分别定义不同的激活样式名如:.active-me、.active-setting方才实现。)
在模仿qq空间底部+号功能时,旋转+号按钮背景图变形。
[UIView animateWithDuration:0.5 animations:^{
self.button.transform = CGAffineTransformMakeRotation(M_PI * 45.0f / 180.0f);
} completion:^(BOOL finished){
}];
当角度是90或180时,不会变形,因为旋转后的尺寸刚好与原尺寸一致,但是45或135时,图片不显示,其他尺寸拉变形了。
我在https://github.com/gavinkwoe/BeeFramework/wiki/Bee-Templates-Manual 看见有SDK,但是连接失效。是现在没有SDK的支持了吗?
切换tableview的layout会出现空白,whatsbug的les5也会出现空白的情况。
UIBoard .allowedOrientation 属性值建议默认读取项目 plist 上的值
如果单独引用css文件
It's really cool if it can support ARC, and..... Shafa, Zhi Chi Lou Zhu
Thanks for your sharing first .
These days I got some error message: Property 'userAgent' not found on object of type 'BeeHTTPRequest *'.
But it can be built success when a sentence was delete that is “self.userAgent = [BeeHTTPClientConfig sharedInstance].userAgent;”.
I hope it useful for you to work it out.
编辑xml文件过程中,被删除的字符和光标所在的位置对不上!不知道是什么原因
?
Bee_Singleton.h 里面的宏拼写错误,应该是 DEF_SINGLETON 而不是 DEF_SINGLETION.
我新建了一个ARC工程,然后用Cocoapods来管理BeeFramework,然后运行,Log里一直输出
objc[5000]: Object 0x752e270 of class __NSCFDictionary autoreleased with no pool in place - just leaking - break on objc_autoreleaseNoPool() to debug
这在项目模板创建项目的时候比较有意义
具体问题如下:
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
按照”Xcode6各种报错解决方案“修改后,编译还是报错:
NSData+BeeExtension.mm
97行:
return [NSData dataWithContentsOfFile:path];
报错:
Cannot initialize return object of type 'NSString *' with an rvalue of type 'NSData'
没事儿了。。。NSData换成NSString可以编译了。。。
UIViewController+BeeUISignal.m
line 44
msg.HTTP_POST( requestURI ).PARAM(@"uid",uid)
.FILE_JPG_ALIAS(@"filepath", img1, @"temp.jpg")
.FILE_JPG_ALIAS(@"filepath", img2, @"temp.jpg");
以上可以实现两种图片,当我图片不固定数量的时候怎么处理呢?具体的代码怎么写?
编译时候,xcod5报conflicting types for 'echo'错误
代码是2013/8/8号,从Mater下载的
如果还没崩溃,重复第二和第三步
When compile dribbble, complier show me error bellow:
"type of property 'hash' ('NSUInteger' (aka 'unsigned int')) does not match type of accessor 'hash' ('NSString *')
if ( self.element.hash )" in CSSStyleSelector.m
Temporarily avoid this problem by replace element.hash with [element hash]
pod安装完后直接编译报错:
/Users/xxxxx/Pods/BeeFramework/framework/system/network/http/client/Bee_HTTPRequest.m:233:8: Property 'userAgent' not found on object of type 'BeeHTTPRequest *'
注释掉那一行可以通过编译,不知道是否有其他影响
环境:
xcode5.1 SDK7.1
OS X 10.8.5
pod file:
platform :ios, '6.0'
pod 'BeeFramework', :head
xcode6 运行beeframework的工程 全是错误,是否还未支持xcode6?
1,手册就是单单一个pdf文档,没有目录,显得很不专业。绝大部分api发布,都有详细的类\接口等等定义文档,而这里却找不到,让人感觉无从下手(这个最重要)
2,手册中存在多个错误,如(3,如何安装,将/framework 拖拽进工程,这个步骤是不行的。这让开发者从一开始就变得很沮丧。如修改C Mian的说明:UIApplicationMain( argc, argv, nil @”AppDelegate” ); 这里nil后面是不是少了一个,号?,还有其它一些错误,不一一列举
3,内容太零散,很难组织逻辑。开头写得很好,里面的组织却一片乱。让人有点雾里面看花的感觉,一遍又一遍看才能看出一点眉目
4,重要点没有说清楚 只顾贴代码没有详细的说明为什么要写?要写在哪里?
5,Demo注释太少,看了一下,基本没有注释!既然是一个DEMO,就应该尽量快的让人看懂,关键的地方加一下注释,起的作用是很重要的(实现上,就是我们自己写的代码,如果没有加注释,隔一段时间后也会忘记的)
6,Demo太少(这个问题不是关键,主要是手册的问题,手册弄好了,加入开发的人自然多了,Demo自然就有了。)
7,官方github还存在很多的空链接
总结:Bee的思路是一个全新的思路,非常好,可惜的是文档组织不好,没有详细的API接口文档,DEMO缺少必要的注释,让人感觉不敬业,只是玩玩而已
建议:可以参考国内thinkphp.cn的手册的写法,非常详细,非常友好
RT.
the code i download from Master on 8/8/2013
In the example code, the load method in DribbbleBoard_iPhone was called two times.
The reason is the following:
In Bee_UIBoard init method it will first call
self = [super init] // in this method it will call UIViewController init
UIViewController init // in this method it will call BeeUIBoard initWithNibName:bundle:
BeeUIBoard initWithNibName:bundle://in this method, it will call the [self load]
self load
In Bee_UIBoard init method it will call the [self load] method again on the tail of the method.
文件里面的那个bee标识是手动拼成的还是有什么工具可以自动生成?
之前可以使用-fno-objc-arc 。但是用bee 后。build phases 中找不到设置的地方。
test
试着用了一下,全都是ARC的错误,现在大家都在用ARC了,这么多文件,加-fno-objc-arc,会加死人的。
github 和自己编译的
都是这个样子
$ ./scaffold schema build ./example/dribbble.json
[INFO] Loading tables ...
[INFO] Loading services ...
Usage:
bee [arguments ...]
Commands:
version
help
schema build
schema build
schema test
schema test
Example:
bee schema build my.json ~/Desktop
bee schema test my.json
DB Error: 1 "no such function: RAND" ,应该改为 RANDOM(),sqlite内建函数和其他sql数据库内建函数有一点点区别
如题?
Undefined symbols for architecture armv7:
"OBJC_CLASS$_BeeUIApplication", referenced from:
objc-class-ref in Bee_Service.o
"OBJC_CLASS$_BeeViewModel", referenced from:
OBJC_CLASS$_BeePagingViewModel in Bee_PagingViewModel.o
OBJC_CLASS$_BeeStreamViewModel in Bee_StreamViewModel.o
"OBJC_METACLASS$_BeeViewModel", referenced from:
OBJC_METACLASS$_BeePagingViewModel in Bee_PagingViewModel.o
OBJC_METACLASS$_BeeStreamViewModel in Bee_StreamViewModel.o
ld: symbol(s) not found for architecture armv7
clang: error: linker command failed with exit code 1 (use -v to see invocation)
Xcode 4.5.2 , iOS4.3,运行不了。5.0以上可以
2012-11-22 10:18:16.205 WhatsBug[1769:d203] *** NSInvocation: warning: object 0x122ecc of class 'BeeDebugger' does not implement methodSignatureForSelector: -- trouble ahead
2012-11-22 10:18:16.206 WhatsBug[1769:d203] *** NSInvocation: warning: object 0x122ecc of class 'BeeDebugger' does not implement doesNotRecognizeSelector: -- abort
技术选型,建议参考http://iosboilerplate.com/
重现:
<linear orientation="h" class="container">
<button id="signin" >test</button>
</linear>
<style type="text/css">
#signin{
font-size: 40px;
}
</style>
问题:按钮字体无法变成40px的
修复:
git diff ../../../framework/mvc/view/css/extension/UIButton+BeeUIStyle.m
diff --git a/iOS/framework/mvc/view/css/extension/UIButton+BeeUIStyle.m b/iOS/framework/mvc/view/css/extension/UIButton+BeeUIStyle.m
index 5161757..366912d 100644
--- a/iOS/framework/mvc/view/css/extension/UIButton+BeeUIStyle.m
+++ b/iOS/framework/mvc/view/css/extension/UIButton+BeeUIStyle.m
@@ -218,13 +218,13 @@
UIFont * font = [properties parseFont:[UIFont systemFontOfSize:12.0f]];
if ( font )
{
- if ( [self respondsToSelector:@selector(setFont:)] )
+ if ( [self respondsToSelector:@selector(setTitleFont:)] )
{
- [self performSelector:@selector(setFont:) withObject:font];
+ [self performSelector:@selector(setTitleFont:) withObject:font];
}
- else if ( [self respondsToSelector:@selector(setTitleFont:)] )
+ else if ( [self respondsToSelector:@selector(setFont:)] )
{
- [self performSelector:@selector(setTitleFont:) withObject:font];
+ [self performSelector:@selector(setFont:) withObject:font];
}
}
@@ -252,6 +252,7 @@
[self applyButtonTitle:propertiesCopy];
[self applyButtonColor:propertiesCopy];
[self applyButtonInsets:propertiesCopy];
+ [self applyButtonContent:propertiesCopy];
[super applyUIStyling:propertiesCopy];
}
有这样一张图片,当进入changeImage方法后改变了Bee_UIImageView的坐标系,导致添加在Bee_UIImageView上得视图位置不正常。
我创建了一个iPad应用,设置为只能横屏显示。
又创建了一个继承BeeUIBoard的类,在
- (void)handleUISignal_BeeUIBoard:(BeeUISignal *)signal
{
if ( [signal is:BeeUIBoard.LAYOUT_VIEWS] )
{
BeeLog(@"frame %@",NSStringFromCGRect(self.viewBound;));
}
}
应该打印出的日志是: 0,0,1004,768,但实际打印出来的是:0,0,768,1004.
我想这应该是一个bug,估计是没有判断当前的屏幕模式导致的。
(void)didAppearingAnimationDone
{
if ( NO == _tipsAppear.useMask )
{
_maskView.alpha = 0.0f;
[_maskView removeFromSuperview];
}
[_tipsDisappear removeFromSuperview];
_tipsDisappear = nil;
[_tipsAppear internalDidAppear];
[_tipsDisappear internalDidDisappear];
}
_tipsDisappear 对像在使用前被释放了。所以DisAppear的消息也发不出来了。
UIView+BeeUITemplate.m
line64
should be
self.FROM_NAME( [self UIResourceName] );
not sure if it is in intention for BF5.0?
1.beeuialertview crash
self = [super initWithTitle:nil message:nil delegate:nil cancelButtonTitle:nil otherButtonTitles:nil];
如果换成下面的self = [super init];则ok
2.statusbar颜色好像写死了,得手动更改颜色
3.weixin sdk无法分享,得替换lib
4.beeuibutton event,如果重新设置事件,上一个事件最好移除
5.AsiformDataRequest post 图片时,因为不带文件后缀,有些服务器收不到图片
6.UIViewController+UINavigationBar - (void)showBarButton:(NSInteger)position custom:(UIView *)view函数未完成
7.ios7,navigationbar back item无法使用,导致在ios7上无法右滑pop stack
8.按钮在某些情况下,touchupinside时,无法及时响应touch高亮
本人能力有限,有可能以上只是我使用方法不对,希望能得到你的帮助
望指点一下,看了Xcode6 报错指南后还是一头雾水。
workaround:
set
[request setShouldAttemptPersistentConnection:NO];
in
I did not dig deeper. so maybe you guys should fix it.
iOS 5.0 device
CFRetain + 20, stop reason = EXC_BAD_ACCESS (code=EXC_ARM_DA_ALIGN, address=0x2105a1) frame #0: 0x30ce3e58 CoreFoundation
CFRetain + 20__CFDictionaryStandardRetainValue + 68 frame #2: 0x30db3374 CoreFoundation
**CFBasicHashAddValue + 1552CFBasicHashSetValue + 3020 frame #4: 0x30ce55ba CoreFoundation
CFDictionarySetValue + 198-[__NSPlaceholderDictionary initWithObjects:forKeys:count:] + 1178 frame #6: 0x30cfb3b2 CoreFoundation
+[NSDictionary dictionaryWithObject:forKey:] + 50__22-[BeeUIStyle PROPERTY]_block_invoke(, first=0x0026b690) + 504 at Bee_UIStyle.m:129 frame #8: 0x00218fea WhatsBug
-[Lesson14Board handleUISignal_BeeUIBoard:](self=0x0d8a5170, _cmd=0x00221819, signal=0x0d8993c0) + 4378 at Lesson14Board.m:54-[NSObject performSelector:withObject:] + 42 frame #10: 0x00155ed8 WhatsBug
-[BeeUISignal routes](self=0x0d8993c0, _cmd=0x3792453a) + 1080 at Bee_UISignal.m:325-[BeeUISignal send](self=0x0d8993c0, _cmd=0x339c4074) + 1540 at Bee_UISignal.m:204 frame #12: 0x0018047a WhatsBug
-[UIViewController(self=0x0d8a5170, _cmd=0x0022643b, name=0x0d88fea0, object=0x00000000, source=0x0d8a5170) sendUISignal:withObject:from:] + 326 at UIViewController+BeeUISignal.m:85-[UIViewController(self=0x0d8a5170, _cmd=0x0022662e, name=0x0d88fea0) sendUISignal:] + 66 at UIViewController+BeeUISignal.m:68 frame #14: 0x0017383a WhatsBug
-[BeeUIBoard createViews](self=0x0d8a5170, _cmd=0x00229831) + 162 at Bee_UIBoard.m:697-[BeeUIBoard viewDidLoad](self=0x0d8a5170, _cmd=0x33991202) + 198 at Bee_UIBoard.m:555 frame #16: 0x335d2e32 UIKit
-[UIViewController view] + 166-[UIViewController contentScrollView] + 24 frame #18: 0x335df200 UIKit
-[UINavigationController _computeAndApplyScrollContentInsetDeltaForViewController:] + 36-[UINavigationController _layoutViewController:] + 34 frame #20: 0x335de968 UIKit
-[UINavigationController _startTransition:fromViewController:toViewController:] + 500-[UINavigationController _startDeferredTransitionIfNeeded] + 250 frame #22: 0x335d2ca6 UIKit
-[UINavigationController pushViewController:transition:forceImmediate:] + 806-[UINavigationControllerAccessibility(SafeCategory) pushViewController:transition:forceImmediate:] + 50 frame #24: 0x335d297c UIKit
-[UINavigationController pushViewController:animated:] + 36-[BeeUIStack pushBoard:animated:animationType:](self=0x00409a20, _cmd=0x0022a2ad, newBoard=0x0d8a5170, animated='\x01', type=0) + 432 at Bee_UIStack.m:203 frame #26: 0x00178870 WhatsBug
-[BeeUIStack pushBoard:animated:](self=0x00409a20, _cmd=0x00221805, board=0x0d8a5170, animated='x01') + 124 at Bee_UIStack.m:187-[CatelogBoard tableView:didSelectRowAtIndexPath:](self=0x0d85f030, _cmd=0x33989877, tableView=0x0cb2c600, indexPath=0x0d8ea150) + 416 at CatelogBoard.m:164 frame #28: 0x3364bae4 UIKit
-[UITableView _selectRowAtIndexPath:animated:scrollPosition:notifyDelegate:] + 944-[UITableView _userSelectRowAtPendingSelectionIndexPath:] + 158 frame #30: 0x305f8932 Foundation
__NSFireDelayedPerform + 414__CFRUNLOOP_IS_CALLING_OUT_TO_A_TIMER_CALLBACK_FUNCTION** + 14 frame #32: 0x30d6f698 CoreFoundation
__CFRunLoopDoTimer + 364__CFRunLoopRun + 1206 frame #34: 0x30cf14a4 CoreFoundation
CFRunLoopRunSpecific + 300CFRunLoopRunInMode + 104 frame #36: 0x33e88438 GraphicsServices
GSEventRunModal + 136UIApplicationMain + 1080 frame #38: 0x000e494e WhatsBug
main(argc=1, argv=0x2fee0d34) + 162 at main.m:37A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.