我想使用传单地图作为页面的背景。而且这个页面有搜索功能,但是这个搜索框不是用来搜索这个地图的。所以我的问题是如何在传单地图上添加搜索框?
您有其他解决方案可以使用地图作为背景吗?喜欢这个页面:http : //directory.spatineo.com/
我的代码在这里:
(instancetype)initWithFrame:(CGRect)frame
{
self = [[[NSBundle mainBundle] loadNibNamed:@"LSCouponADView" owner:Nil options:nil] objectAtIndex:0];
if (self) {
}
return self;
}
Run Code Online (Sandbox Code Playgroud)
然后xcode有警告
指定构造器缺少对超类的指定构造器的超级调用
当我建造它时。
我试图在这里回答一个问题,我需要根据之前的3个月来计算销售预测,这可能是实际的或预测的.
Month Actuals Forecast
1 10
2 15
3 17
4 14.00
5 15.33
6 15.44
7 14.93
Month 4 = (10+15+17)/3
Month 5 = (15+17+14)/3
Month 6 = (17+14+15.33)/3
Month 7 = (14+15.33+15.44)/3
Run Code Online (Sandbox Code Playgroud)
我一直在尝试使用递归CTE来做到这一点:
;WITH cte([month],forecast) AS (
SELECT 1,CAST(10 AS DECIMAL(28,2))
UNION ALL
SELECT 2,CAST(15 AS DECIMAL(28,2))
UNION ALL
SELECT 3,CAST(17 AS DECIMAL(28,2))
UNION ALL
SELECT
[month]=[month]+1,
forecast=CAST(AVG(forecast) OVER (ORDER BY [month] ROWS BETWEEN 3 PRECEDING AND 1 PRECEDING) AS DECIMAL(28,2))
FROM
cte
WHERE
[month]<=12
) …
Run Code Online (Sandbox Code Playgroud) 我有两个表A和表B,两个表中的公共列都是Name,我想知道表A中不在表B中的名称是什么
当我做:
Select Name from A where Name not in (Select Name from B)
Run Code Online (Sandbox Code Playgroud)
我确信表A中有2个名称不在表B中
但结果什么都没有
表A和B中的这些名称列具有相同的数据类型 varchar(50)
所以我将Name列的结果和Insert复制到一个新表中并执行相同的查询,这次它返回正确的结果.这会是什么bug?
例:
Table A
Name:
Kevin
Dexter
David
John
Marry
Table B
Name:
Kevin
Dexter
David
Run Code Online (Sandbox Code Playgroud)
所以查询应该返回'John'
,'Marry'
但它不会在我的原始表中返回,但它会在我创建和插入的另一个表中返回.
谢谢!
sql-server ×2
cocoa ×1
ios ×1
javascript ×1
leaflet ×1
objective-c ×1
sql ×1
t-sql ×1
xamarin ×1