storyboard

iOS 5, storyboards: customize programmatically created UITableView for every UIView

瘦欲@ 提交于 2019-12-12 00:10:02
问题 In storyboards I've created an UIViewController and added more two UIViews to the same storyboard. Then added UISegmentedControl to enable switch between these UIViews. The method I use to switch between UIView: -(IBAction)segmentValueChaged:(id)sender { if(self.segment.selectedSegmentIndex==0) { [self.coinageView removeFromSuperview]; [self.view addSubview:nominalsView]; [self populateNominals:self.subCountryID]; } else { [self.nominalsView removeFromSuperview]; [self.view addSubview

Why creating non storyboard animation is not smooth

点点圈 提交于 2019-12-11 23:38:54
问题 I need to create an animation that when the user scrolls then a button animates right or left depeing on the direction of the scroll. I need to have a lot of control over this animation because the user may scroll meanwhile the animation is taking place. as a result I decided to create my own animation without using a storyboard. this is what I did to create my animation: Item Class class Item : INotifyPropertyChanged { Thickness _M; public Thickness M { get { return _M; } set { _M = value;

storyboard specific for iphone 4 when designing

故事扮演 提交于 2019-12-11 23:36:41
问题 So I have been designing my app in storyboard for a few hours and realized upon testing that the storyboard windows are the size for the iphone 5. How do I make it so that they are only iphone 4 views? 回答1: There's an icon at the bottom if the storyboard that looks like a long screen. Click it and it toggles the height 来源: https://stackoverflow.com/questions/13220212/storyboard-specific-for-iphone-4-when-designing

UITableView detail transition

末鹿安然 提交于 2019-12-11 23:02:20
问题 I'm tryin to do a detail list but i can't do it and i don't understand why. Is a storyboard, the storyboard is connected ok. Is only one tableView and View controller for detail. I'm trying to push in one cell and go to the detail screen and at the detail class i've two propertys but when i push in a cell, the app crash and i've a exception: Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'Could not load NIB in bundle: 'NSBundle (loaded)' with name

How do I present a modal view upon an option in UIActionSheet being tapped?

不羁岁月 提交于 2019-12-11 22:58:56
问题 I have my main view controller, and tapping a button brings up an action sheet. I want one of the options tapped there to bring up an action sheet. I can't seem to figure it out, however, despite all my searching. I have the following code: - (void)actionSheet:(UIActionSheet *)actionSheet clickedButtonAtIndex:(NSInteger)buttonIndex { NSString *buttonTitle = [actionSheet buttonTitleAtIndex:buttonIndex]; if ([buttonTitle isEqualToString:@"Text"]) { AddTextViewController *addTextViewController =

Use a storyboard to call a method in a usercontrol created dynamically

邮差的信 提交于 2019-12-11 20:39:40
问题 to add clarity to the below. I was considering using timers or storyboard.CurrentTimeInvalidated but the storyboard is for a metronome and the timings are in milliseconds: therefore: CurrentTimeInvalidated does not raise events every millisecond from what I have seen in debug, it seems to raise every 200ms. Timers have to be initialised in code and obviously this happens sequentially with the storyboard.begin. as a result the timers go out of alignment over a period of about 30 seconds. I

UIDatePicker Displays 2013-04-23 16:12:10 instead of 11:10

独自空忆成欢 提交于 2019-12-11 20:35:29
问题 I have a UIDatePicker that works properly however I want to modify the date and time to look like the following: 04-23-2013 11:10 instead of 2013-04-23 16:12:10. How would I go about this? Here is my code. .h @interface SchedulerViewController : UIViewController <UITableViewDelegate,UITableViewDataSource> { IBOutlet UITableView *tableview; IBOutlet UIDatePicker *datePicker; IBOutlet UITextField *eventText; } @property (nonatomic, retain) IBOutlet UITableView *tableview; @property (nonatomic,

Handle screens based on Custom URL Scheme using UIStoryBoard

纵然是瞬间 提交于 2019-12-11 20:29:20
问题 I have two applications named with, SendDataApp ReceiveDataApp This is my StoryBoard of ReceiveDataApp I can able to send data to my receiving app and can handle it by below method, - (BOOL)application:(UIApplication *)app openURL:(NSURL *)url options:(NSDictionary<NSString *,id> *)options; But, here the problem is i want to show the data which i received from SendDataApp to my DetailViewController of ReceivedDataApp I am trying with below method to handle it, Appdelegate.m - (BOOL

How to specify a label to one specific storyboard?

做~自己de王妃 提交于 2019-12-11 20:14:32
问题 Basically I am making an app (a simple game) using storyboards where a question will pop up on the screen and the user has to answer it. They have the option to move onto the next question or to record their response. I have created an NSArray which has a list of questions and I want them to appear in a label randomly (the label will pick one of the questions from the NSArray at random to display). The way I want to do this though is so that each storyboard has a question so once one question

Combining Two Xcode Projects: One with code and one without

柔情痞子 提交于 2019-12-11 20:12:54
问题 I currently have two Xcode projects: my main project that uses storyboard and another Xcode project that contains a single view controller that only uses code (no storyboard). The second view controller (that uses only code) follows this tutorial: http://www.raywenderlich.com/55384/ios-7-best-practices-part-1 I am trying to add the second (code only) project to the project that uses storyboard. I figured I could add in all of the .m and .h files and all of the frameworks as well and then when