小编Tob*_*len的帖子

iPhone:基于计时器的视频录制?

我已经实现了代码来做视频录制功能.它在3GS设备上运行良好.我想根据一些计时器设置来限制视频录制.可以说,我想让用户只进行20秒或35秒的视频录制.我怎样才能做到这一点?我可以在录制视频时在媒体播放器顶部显示计时器控件吗?

请建议我.

这是我的视频录制代码:

    UIImagePickerController *pickerController = 
                       [[[UIImagePickerController alloc] init] autorelease];
    pickerController.delegate = self;
    pickerController.sourceType = UIImagePickerControllerSourceTypeCamera;
    pickerController.showsCameraControls = YES;
    pickerController.mediaTypes = [NSArray arrayWithObject:(id)kUTTypeMovie];
    [self presentModalViewController:pickerController animated:YES];
Run Code Online (Sandbox Code Playgroud)

iphone cocoa-touch objective-c

1
推荐指数
1
解决办法
2937
查看次数

我收到COM错误,我需要任何方向来解决这个问题

我收到了这个错误:

Retrieving the COM class factory for component with 
CLSID `{CCB90152-B81E-11D2-AB74-0040054C3719}`

failed due to the following error: 80040154.
Run Code Online (Sandbox Code Playgroud)

有谁知道这是什么问题?

c# winforms

1
推荐指数
2
解决办法
1754
查看次数

ABContact的替代地址簿API帮助程序

我有一个Iphone应用程序,它使用了由Erica Sedun编写的优秀ABContactHelper库并在github上发布

现在随着XCode4和引用计数支持的发布,它会导致很多错误.我已经查看了github上的forks,但似乎没有更新到使用引用计数的XCode 4.我试图自己更新它,但它缓慢且容易出错.我尝试过自动重构支持,但无济于事.

有没有人知道另一个AddressBook包装器,它提供了一个简单的界面来与IPhone AddressBook进行交互?

iphone reference-counting objective-c abaddressbook xcode4.2

1
推荐指数
1
解决办法
1310
查看次数

文件编码的更改是否会影响我的css显示html页面的方式?

我使用PHP Smarty时很奇怪.似乎php文件的编码会影响css.

PHP文件(ANSI) - test2.php

<?php
include_once("inc/smarty_inc.php");
$smarty->display('test.tpl.htm');
Run Code Online (Sandbox Code Playgroud)

Smarty文件(ANSI) - test.tpl.htm

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <title>JPR</title>
</head>
<body>
    <div style="width:500px;height:200px; background-color:Red;margin:auto;">
        test
    </div>
</body>
</html>
Run Code Online (Sandbox Code Playgroud)

当这两个文件是ANSI时.div显示在页面的中心.(IE和Firefox)

当其中一个转换成utf-8时.div显示在页面左侧.(仅在IE中,可以使用Firefox)

它有什么关系?如何在IE中使用uff-8使其正常?

html php internet-explorer smarty character-encoding

1
推荐指数
1
解决办法
149
查看次数

slickgrid可调整大小不刷新行

  • 我在slickgrid周围添加了一个容器div(容器有一个标题等,只是为了让它看起来整洁而整洁).
  • 我使用jquery使div可调整大小,并指示它同时调整网格和视口的大小.

它工作得很好(一切都一致调整)但是在滚动之前,可见行的数量不会更新.

有没有办法强制视口刷新?grid.render不起作用.

$(".container").resizable({
    alsoResize: ".grid, .slick-viewport",
    resize: function (event, ui) { }
});

$(".container").on("resize", function (event, ui) {
    dataView.refresh();
    grid.render();
});
Run Code Online (Sandbox Code Playgroud)

javascript jquery slickgrid

1
推荐指数
1
解决办法
2359
查看次数

如何将整个git repo输出到单个文件?

我创建了一个git repo,我希望将所有提交的整个git repo作为单个补丁文件.

我尝试过很多SO帖子,但在任何地方都找不到合适的解决方案.

git git-diff

1
推荐指数
1
解决办法
190
查看次数

htaccess文件限制

我的网络服务器上有一个目录.它没有索引页面.因此,当您通过Web浏览器访问目录时,它会列出其中的文件.现在我想创建一个可以阻止目录列表的htaccess文件,这样当你通过Web浏览器访问它时,目录中的文件将不会列出,但是可以通过附加文件名来访问这些文件希望访问该网址,使其成为该文件的完整部分.此外,htaccess文件应该能够限制除具有特定扩展名的文件之外的所有文件的访问权限.谢谢.

apache .htaccess

0
推荐指数
1
解决办法
1500
查看次数

为什么我的if语句没有解雇?

我有以下Objective-c函数

  - (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath 
{


NSUInteger section = [indexPath section];
NSUInteger row = [indexPath row];

NSString *key = [keys objectAtIndex:section];
NSArray *nameSection = [mysearchdata objectForKey:key];

static NSString *SectionsTableID = @"SectionsTableID";
static NSString *TobyCellID = @"TobyCellID";

NSString *aName = [nameSection objectAtIndex:row];  

if (aName == @"Toby")
{
    TobyCell *cell = [tableView dequeueReusableCellWithIdentifier:TobyCellID];      
    if (cell == nil)
    {       
        NSArray *nib = [[NSBundle mainBundle] loadNibNamed:@"TobyCell" owner:self  options:nil];
        for (id oneObject in nib)
            if ([oneObject isKindOfClass:[TobyCell class]])
                cell = (TobyCell *)oneObject;   
    } …
Run Code Online (Sandbox Code Playgroud)

iphone objective-c syntax-error

0
推荐指数
1
解决办法
118
查看次数

PHP中的字符串操作

我怎样才能获得{} 例如... 之间的值.1"{1}"和使用它?

php regex string

0
推荐指数
1
解决办法
92
查看次数

Div不向左浮动

似乎无法让这个div向左移动.使用wordpress.我尝试了很多东西,但我不知所措.这是div的css:

#portfolio li img {
    position: absolute;
    float: left;
    margin: 34px 50px 0 0;
    width: 942px;
}
Run Code Online (Sandbox Code Playgroud)

这是header.php:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<!--
Design by Davey Whitney
davey@daveywhitney.com
-->

<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=<?php bloginfo('charset'); ?>" />



<link rel="stylesheet" type="text/css" href="wp-content/themes/zenlite/layout.css" media="screen" />
<link rel="stylesheet" type="text/css" href="<?php bloginfo('template_directory'); ?>/print.css" media="print" />
<link rel="stylesheet" type="text/css" href="wp-content/themes/zenlite/color.css" />
<script type="text/javascript" src="js/jquery.js"></script>
<script type="text/javascript" src="js/jquery.kwicks-1.5.1.js"></script>
<script type="text/javascript" src="js/jquery.innerfade.js"></script>
<script type="text/javascript" src="js/custom.js"></script>





<title>
Wildfire
</title>


<script type="text/javascript" src="http://wfithaca.com/js/jquery.lavalamp.js"></script> …
Run Code Online (Sandbox Code Playgroud)

html css php jquery

0
推荐指数
1
解决办法
2993
查看次数