我是Iphone开发的新手.如果我问一些非常简单的问题,请耐心等待.
在我的应用程序中,我有多个视图(即.xib文件).上点击主视图中的按钮(CouponWebsiteViewController.Xib)应用程序应该加载含有UITable所述第二视图(BrowseList.Xib),我有来填充UITable与一些数据.我编写了以下代码来填充BrowseList.m文件中的数据:
- (void) viewDidLoad{
arrayData = [[NSArray alloc] init];
arrayData = [arrayData arrayByAddingObject:@"dfsgdf"];
arrayData = [arrayData arrayByAddingObject:@"aaaaaa"];
self.lblNewScreen.text = [arrayData objectAtIndex:0];
[super viewDidLoad];
}
- (NSInteger)numberOfSectionsInTableView:(UITableView *)tableView {
return 1;
}
// Customize the number of rows in the table view.
- (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section {
return [arrayData count];
}
// Customize the appearance of table view cells.
- (UITableViewCell *)tableView:(UITableView *)tableView
cellForRowAtIndexPath:(NSIndexPath *)indexPath {
static NSString *CellIdentifier = @"Cell";
UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:CellIdentifier];
if (cell == nil) …Run Code Online (Sandbox Code Playgroud) 我正在使用xamarin开发一个Android应用程序,我需要在各个领域中根据用户输入的数据创建QR代码.
所以我的问题是我可以在Xamarin的帮助下完成吗?如果是,那么请帮助我提供任何示例代码或教程链接.
我想在Mac PC上使用xcode发送电子邮件.为此,我使用MFMailComposeViewController类,我已经附加了代码文件:
但是,当我单击模态视图控制器的发送按钮时,它返回MFMailComposeResult类的MFMailComposeResultSent对象,但电子邮件未达到指定的电子邮件ID.当我单击"取消"按钮时,它将返回MFMailComposeResultCancelled.
我还使用电子邮件帐户配置了我的mac.但我无法理解的是这个电子邮件帐户如何与上面的代码连接,因为即使我从mac机器删除所有电子邮件帐户,然后单击modalViewController的发送按钮,它返回MFMailComposeResultSent对象.
有人可以帮我发送电子邮件并理解电子邮件帐户和上述代码之间的通信.
提前致谢.