ios6

Why doesn't setting the value property of this UISlider update its position?

故事扮演 提交于 2020-01-07 04:44:30
问题 ...ViewController.h: @property (nonatomic, strong) IBOutlet UISlider *slider; ...ViewController.m: @synthesize slider; - (void)viewDidLoad { [super viewDidLoad]; ... currentValue = 50; self.slider.value = currentValue; // Do any additional setup after loading the view, typically from a nib. } .xib: The UISlider in my interface is connected to the slider property. Behavior: The slider sits all the way to the right at value 100 when it is supposed to be in the middle. An action I set up

How to show SomeViewControler using code?

谁说我不能喝 提交于 2020-01-07 02:17:25
问题 I am brand new in Xcode and iOS development. I am trying to figure out how to open/show some view based on button click. I know that I can do this using ctrl + mouse click on some ViewController using segue but I need to add some logic before. How can I accomplish this? 回答1: There are two ways to make segues work. You can either ctrl drag from a button to a new ViewController (like you have done) or you can ctrl drag from one ViewController to a new ViewController (drag from the little orange

Hiding a UINavigationController on start page

会有一股神秘感。 提交于 2020-01-06 13:57:51
问题 Hi I have a navigationController that starts with a view controller in which in viewDidLoad has: self.navigationController.navigationBarHidden = YES; I click a button on that page and it transitions to a second view controller in which I put: self.navigationController.navigationBarHidden = NO; This works fine until I click the Back button in the navigation bar. How do I keep the navigation bar permanently off the start page but not the transitioned one? 回答1: Add self.navigationController

iOS application deletes itself once downloaded

百般思念 提交于 2020-01-06 07:28:11
问题 I'm developing an application for a company for iOS > 5.0 using Xcode 4.6.1. To test application, i archived application using Save for Enterprise or Ad-hoc deployment . I've checked also Save for Enterprise Distribution and filled appropriate fields. So far, i'm able to create an myApp.ipa file and myApp.plist file. I've created an url to myApp.plist . Once, i clicked url, myApp starts to download correctly. My problem is that once download's finished, myApp deletes itself and i got no crash

Move rows to bottom in a TableView which uses CoreData

折月煮酒 提交于 2020-01-05 13:08:29
问题 In my app I have a folder-file (one-to-many relationship).So when I open my app, my firstViewController contains all files and when clicked on each folder, it opens a tableViewController displaying files in that folder. Now here whenever I swipe any row, it is moved to bottom row and the table is update accordingly, the next swiped row will go and sit above the first swiped row. Eg, at present if my table contains 0 1 2 3 A B C D After swiping A 0 1 2 3 B C D **A** after swiping B 0 1 2 3 C D

Navigation bar button not showing

筅森魡賤 提交于 2020-01-05 08:43:43
问题 When try to add a navigation button on left and right side , its not showing?is this is the code i used for, Whats wrong with this? this is how i added the navigation bar in in appdelegate, UIViewController *viewController1 = [[logyFirstViewController alloc] initWithNibName:@"logyFirstViewController" bundle:nil]; UIViewController *viewController2 = [[logySecondViewController alloc] initWithNibName:@"logySecondViewController" bundle:nil]; UIViewController *viewController3 = [[record alloc]

Expandable and Collapsable UITableViewCell with Custom Views

旧城冷巷雨未停 提交于 2020-01-05 07:41:52
问题 Not Getting any Idea on how to solve this .... Ok. This is my custom UITableViewCell with three different Child Views . That you can see with different colors. Here , Height of my second Child View is dynamic and be calculated at run time. I am using -heightForRowAtIndexPath to set the height of UITableViewCell . What I have tried : I set the Outlets of Child Views and then in -heightForRowAtIndexPath , I used this Code... middleView.frame = CGRectMake(0, 60.0, 750.0, size); footerView.frame

Can't Get Coordinates From MKMapView Using UILongTouchGestureRecognizer

ぐ巨炮叔叔 提交于 2020-01-05 07:38:16
问题 I'm using iOS 6, and I've read dozens of ways to accomplish this (including many from stack overflow) without success. Here's what I've tried, separated into "stages": Create a UILongTouchGestureRecognizer to receive long touches for the MKMapView . I've tried adding a UILongTouchGestureRecognizer via my Storyboard, and hooking up the outlets, delegates, etc. through the Connections Inspector. I've tried creating the UILongTouchGestureRecognizer programmatically, initializing it using mapView

iOS 6 use of UDIDs for push notifications forbidden?

岁酱吖の 提交于 2020-01-05 06:50:55
问题 Starting May 1st, 2013, Apple will stop accepting apps that access unique device identifiers (UDIDs) . Sounds like didRegisterForRemoteNotificationsWithDeviceToken: , will no longer get passed a UDID as the device token; but so far, this doesn't seem to be the case in iOS 6.0. To get around the issue and hedge the risk of my app getting rejected, I found this S.O. question , where they suggest using ASIdentifierManager to check if the user has enabled ad tracking for the app and then get the

iOS - Presenting a UIViewController inside anther UIViewController

 ̄綄美尐妖づ 提交于 2020-01-05 06:40:07
问题 I dont have a very good understanding on the topic, so please bear with me I am trying to display a UIViewController inside another UIViewController. I feel like there aren't enough examples out there. I have read the documentation but being fairly new to iOS I am kind of lost. Here is my problem: I can get the child UIViewController to appear inside the parent UIViewController but the child view is not displaying right. Sorry, I cant post pictures yet. Here is my child - UIViewController.