storyboard

Why all the element moved when adding a constraint in storyboard?

若如初见. 提交于 2019-12-11 14:05:51
问题 I design all my element nicely for a prototype cell of tableView ,but whenever I add a new constraint for my element,all element just moved and become like image below: It happen often,may I know why is this happen and how to prevent it? EDIT : For example,before adding constraint it look like this The white part in the center is a stack view,so I set it to leading = 0 and trailing=0 .And then I add a constraint inside the stack view to leading=0 which it align with the stackview all element

size class for table row height in iOS storyboard

你。 提交于 2019-12-11 13:49:16
问题 I develop an iOS app with Swift and storyboard. I placed a table and I need to change table cell height depending on screen class, but I can't find such option in table options. I see that cell height is defined by Table View / Row height option, but it doesn't support class sizes. This problem happens because I set fonts of labels in the cell prototype using size classes, so for bigger screens fonts are bigger, but row height can't be changed per size class. I need a higher row for bigger

Youtube storyboard script - bigger thumbnail?

三世轮回 提交于 2019-12-11 13:42:32
问题 http://www.labnol.org/internet/print-youtube-video/28217/ javascript:(function(){a=ytplayer.config.args.storyboard_spec;if(!a){alert("Sorry we cannot process this YouTube video. Could you please try another one");exit();}b=a.split("|");base=b[0].split("$")[0] "2/M";c=b[3].split("#");sigh=c[c.length-1];var imgs="";t=ytplayer.config.args.length_seconds;n=Math.ceil(c[2]/(c[3]*c[4]));for(i=0;i<n;i ){imgs ="<PICTURE='" base i ".jpg?sigh=" sigh "'><br/>";}var title=ytplayer.config.args.title;msg="

MVVMCross: Is it possible to use Storyboard with ICommand navigation?

倾然丶 夕夏残阳落幕 提交于 2019-12-11 13:25:07
问题 I've spent the last few days trying to figure out a way to get around the warning: mvx: Warning: 8.93 Exception masked MissingMethodException: Default constructor not found for type FCX.iOS.TimesheetView at System.Activator.CreateInstance (System.Type type, Boolean nonPublic) [0x00094] in /Developer/MonoTouch/Source/mono/mcs/class/corlib/System/Activator.cs:326 at System.Activator.CreateInstance (System.Type type) [0x00000] in /Developer/MonoTouch/Source/mono/mcs/class/corlib/System/Activator

Using UITableView inside Container view for forms - how do I access the form fields?

风格不统一 提交于 2019-12-11 13:17:10
问题 I'm experimenting with using table views inside a Storyboard to build forms, but I can't figure out a simple way to access the form fields when the table is inside a container. This is what I have: a custom view controller (LoginController) with a Container View where the form goes a static UITableViewController embedded in the Container fields (email, password, etc.) inside cells in the UITableViewController My question is: what's the simplest way to access the value of the email and

If UIWebview url is equal to

删除回忆录丶 提交于 2019-12-11 12:47:36
问题 I got a UIWebView called "homeview". Everytime someone is browsing the UIWebview I want to check if the page url is "http://www.website.com/cart" and then change the tab controller to the second tab. So I did it like this: - (BOOL)webView:(UIWebView *)homeview shouldStartLoadWithRequest:(NSURLRequest *)request navigationType:(UIWebViewNavigationType)navigationType { NSString *URLString = [[request URL] absoluteString]; if ([URLString isEqualToString:@"http://www.website.com/cart"]) { self

Swift - Load storyboard programmatically

感情迁移 提交于 2019-12-11 12:40:00
问题 func application(application: UIApplication, didFinishLaunchingWithOptions launchOptions: [NSObject: AnyObject]?) -> Bool { // step 1. check the device var idiom = UIDevice.currentDevice().userInterfaceIdiom // step 2. take a storyboard variable var storyBoard:UIStoryboard? = nil // step 3. load appropriate storyboard file if idiom == UIUserInterfaceIdiom.Phone { storyBoard = UIStoryboard(name: "Main", bundle: nil) } else { storyBoard = UIStoryboard(name: "Main_iPad", bundle: nil) } // step 4

Navigation Bar not showing in Storyboard

帅比萌擦擦* 提交于 2019-12-11 12:09:17
问题 I embeded in a navigation controller to a viewController, and a nav bar item is showing (in the outline editor), and I can change the title, but the navigation bar is not showing in the (outline editor) and I therefore cannot change the bar tint color. So I tried adding in a nav bar programmatically, like this: .h file @property (strong, nonatomic) UINavigationBar *nav; .m file nav = [[UINavigationBar alloc] initWithFrame:CGRectMake(0, 0, 320, 50)]; self.nav.tintColor = [UIColor blueColor];

Access Storyboard dynamically from code-behind?

风流意气都作罢 提交于 2019-12-11 11:58:18
问题 I'm working on a Windows Phone app, but I believe this applies to Silverlight as well. I want to create a Storyboard (right now I'm creating it as a global variable in my code-behind page for testing) that changes a Rectangle 's Fill property from transparent to red, and then back to transparent. I'm going to be re-using this Storyboard among multiple rectangles so I'd like to be able to access it and Begin() it from the code-behind. I couldn't find any examples like this, so I gave it a shot

iOS应用国际化教程(2014版)

早过忘川 提交于 2019-12-11 11:07:57
【推荐】2019 Java 开发者跳槽指南.pdf(吐血整理) >>> 本文最初由 Sean Berry 撰写,由 Ali Hafizji 针对iOS 7进行了更新。 开发一款伟大的iOS应用程序是件了不起的事情,但是还有比优秀的代码、华丽的设计以及直观化交互更多的事要做。跻身在App Store排行榜前列还需要正合时宜的产品营销、扩大用户群的能力、实用的工具以及尽可能广泛地获得用户的技术。 对很多开发者来说,国际市场是事后的想法,但由于App Store提供了无缝的全球分享模式,任何iOS开发者都可以通过一键点击把应用程序发布至超过150个国家的市场。亚洲和欧洲代表了潜在客户不断增长的市场,这两个市场中很多人都不是以英语为母语,但是为了让应用充分利用市场的潜力,你至少要把应用语言国际化。 这篇教程将通过一款名为iLikeIt的应用带你了解最基础的国际化概念,并为你的应用添加国际化的支持。该示例应用有一个标签和一个You Like?按钮,用户无论何时点击You Like?,一些乐观的销售数据和对应的图片就会从按钮下方淡入显示。 不过现在,该应用仅仅有英语版本。 注意:国际化另一个重要的方面是使用Auto Layout改变文本的大小。不过为了让本教程尽可能地简单,我们不会主要关注Auto Layout。对于 Auto Layout这个话题,我们 另有其他教程 。 国际化 vs 本地化