¡@

Home 

2014/10/15 ¤U¤È 10:12:29

iphone Programming Glossary: pass

How would I tint an image programatically on the iPhone?

http://stackoverflow.com/questions/1117211/how-would-i-tint-an-image-programatically-on-the-iphone

context Ordinarily to optimize the drawing you would restrict the actual drawing to only the area passed in to drawRect but since the background image has to be redrawn each time the color changes it's likely..

Add UIPickerView & a Button in Action sheet - How?

http://stackoverflow.com/questions/1262574/add-uipickerview-a-button-in-action-sheet-how

a weak property called delegate of type id SimpleTableViewControllerDelegate . This is how we will pass the selection back to the parent controller. In SimpleTableViewController.m implement the tableview..

NSURLConnection timeout?

http://stackoverflow.com/questions/1424608/nsurlconnection-timeout

to do this is to construct it via the requestWithURL cachePolicy timeoutInterval method. You can pass in the default NSURLRequestUseProtocolCachePolicy cachePolicy parameter if you don't want to worry about..

How to call Objective-C from Javascript?

http://stackoverflow.com/questions/1662473/how-to-call-objective-c-from-javascript

. In your JavaScript code navigate to some fake URL that encodes the information you want to pass to your app like say window.location fake myApp something_happened param1 param2 param3 In your delegate..

How to save picture to iPhone photo library?

http://stackoverflow.com/questions/178915/how-to-save-picture-to-iphone-photo-library

Programmatically add custom event in the iPhone Calendar

http://stackoverflow.com/questions/246249/programmatically-add-custom-event-in-the-iphone-calendar

and execute the event handling inside of a block. 2 You need to commit your event now or pass the commit param to your save remove call Everything else stays the same... Add the EventKit framework..

Objective-C categories in static library

http://stackoverflow.com/questions/2567498/objective-c-categories-in-static-library

is defined in the category. And their solution To resolve this issue the static library should pass the ObjC option to the linker. This flag causes the linker to load every object file in the library..

The simplest way to resize an UIImage?

http://stackoverflow.com/questions/2658738/the-simplest-way-to-resize-an-uiimage

UIImage image scaledToSize CGSize newSize UIGraphicsBeginImageContext newSize In next line pass 0.0 to use the current device's pixel scaling factor and thus account for Retina resolution . Pass 1.0..

Inner shadow effect on UIView layer?

http://stackoverflow.com/questions/4431292/inner-shadow-effect-on-uiview-layer

path CGPathCreateMutable when drawing the shadow for a path whichs bounding box is not known pass CGPathGetPathBoundingBox visiblePath instead of bounds in the following line 42 cuould just be any offset..

How to Sync iPhone Core Data with web server, and then push to other devices?

http://stackoverflow.com/questions/5035132/how-to-sync-iphone-core-data-with-web-server-and-then-push-to-other-devices

AllObjects ObjectId DeviceId DeviceObjectId . Then when the device pushes up a change set it will pass along the device Id and the objectId from the core data object in the local data store. Then my cloud..

How to hide uitabbarcontroller

http://stackoverflow.com/questions/5272290/how-to-hide-uitabbarcontroller

from my working code... you can call these methods to hide and show the tabbarcontroller.... just pass tabbarcontroller instance to these functions.. Method call self hideTabBar self.tabBarController Method..

What's the best way to communicate between view controllers?

http://stackoverflow.com/questions/569940/whats-the-best-way-to-communicate-between-view-controllers

a global variable . Instead you should always inject those dependencies into the controller i.e. pass in the objects it needs via methods . If you follow the dependency injection pattern your controller..

How do I set up a simple delegate to communicate between two view controllers?

http://stackoverflow.com/questions/6168919/how-do-i-set-up-a-simple-delegate-to-communicate-between-two-view-controllers

to communicate between two view controllers I have two UITableViewControllers and need to pass the value from the child view controller to the parent using a delegate. I know what delegates are and.. question Simple example... Let's say the child view controller has a UISlider and we want to pass the value of the slider back to the parent via a delegate. In the child view controller's header file..

Understanding reference counting with Cocoa and Objective-C

http://stackoverflow.com/questions/6578/understanding-reference-counting-with-cocoa-and-objective-c

answer is to call autorelease before returning the string. By explicitly calling autorelease we pass the responsibility for releasing the string on to the thread's NSAutoreleasePool which will happen at..

Need to find Distance using Gyro+Accelerometer

http://stackoverflow.com/questions/6647314/need-to-find-distance-using-gyroaccelerometer

y and z and basic geometry is the Pythagorean theorem So once you have your accelerometer signals passed through a low pass filter and binned in time with sampling interval dt you can find the displacement.. is the Pythagorean theorem So once you have your accelerometer signals passed through a low pass filter and binned in time with sampling interval dt you can find the displacement in x as pardon my..

`[super viewDidLoad]` convention

http://stackoverflow.com/questions/844195/super-viewdidload-convention

To ARC or not to ARC? What are the pros and cons?

http://stackoverflow.com/questions/8760431/to-arc-or-not-to-arc-what-are-the-pros-and-cons

at all to avoid it provided you can handle the OS version restrictions . For non ARC code you can pass fno objc arc on a file by file basis. Xcode unfortunately makes this much harder than it should be to..

how to create iphone's wobbling icon effect?

http://stackoverflow.com/questions/929364/how-to-create-iphones-wobbling-icon-effect

in its original state when done. Also note that you can use the beginAnimations context value to pass along anything to the start stop methods. In this case it's the wobbling object itself so you don't..

Reading HTML content from a UIWebView

http://stackoverflow.com/questions/992348/reading-html-content-from-a-uiwebview

to answer. Look at the stringWithContentsOfURL encoding error method of NSString it lets you pass in a URL as an instance of NSURL which can easily be instantiated from NSString and returns a string..

How would I tint an image programatically on the iPhone?

http://stackoverflow.com/questions/1117211/how-would-i-tint-an-image-programatically-on-the-iphone

CGContextFillRect context self.bounds CGContextRestoreGState context Ordinarily to optimize the drawing you would restrict the actual drawing to only the area passed in to drawRect but since the background image has to be redrawn each time the color changes it's likely the whole thing will need refreshing. To use it create..

Add UIPickerView & a Button in Action sheet - How?

http://stackoverflow.com/questions/1262574/add-uipickerview-a-button-in-action-sheet-how

with a required method itemSelectedatRow and a weak property called delegate of type id SimpleTableViewControllerDelegate . This is how we will pass the selection back to the parent controller. In SimpleTableViewController.m implement the tableview data source and delegate methods calling itemSelectedatRow in..

NSURLConnection timeout?

http://stackoverflow.com/questions/1424608/nsurlconnection-timeout

can specify a timeout in your NSURLRequest object. One way to do this is to construct it via the requestWithURL cachePolicy timeoutInterval method. You can pass in the default NSURLRequestUseProtocolCachePolicy cachePolicy parameter if you don't want to worry about that part. The timeout is a floating point value in seconds..

How to call Objective-C from Javascript?

http://stackoverflow.com/questions/1662473/how-to-call-objective-c-from-javascript

the method webView shouldStartLoadWithRequest navigationType . In your JavaScript code navigate to some fake URL that encodes the information you want to pass to your app like say window.location fake myApp something_happened param1 param2 param3 In your delegate method look for these fake URLs extract the information..

How to save picture to iPhone photo library?

http://stackoverflow.com/questions/178915/how-to-save-picture-to-iphone-photo-library

Programmatically add custom event in the iPhone Calendar

http://stackoverflow.com/questions/246249/programmatically-add-custom-event-in-the-iphone-calendar

to the user's calendar via requestAccessToEntityType completion and execute the event handling inside of a block. 2 You need to commit your event now or pass the commit param to your save remove call Everything else stays the same... Add the EventKit framework and #import EventKit EventKit.h to your code. To add an event..

Objective-C categories in static library

http://stackoverflow.com/questions/2567498/objective-c-categories-in-static-library

in the resulting application from responding to a selector that is defined in the category. And their solution To resolve this issue the static library should pass the ObjC option to the linker. This flag causes the linker to load every object file in the library that defines an Objective C class or category. While this option..

The simplest way to resize an UIImage?

http://stackoverflow.com/questions/2658738/the-simplest-way-to-resize-an-uiimage

if you actually need to resize an image UIImage imageWithImage UIImage image scaledToSize CGSize newSize UIGraphicsBeginImageContext newSize In next line pass 0.0 to use the current device's pixel scaling factor and thus account for Retina resolution . Pass 1.0 to force exact pixel size. UIGraphicsBeginImageContextWithOptions..

Inner shadow effect on UIView layer?

http://stackoverflow.com/questions/4431292/inner-shadow-effect-on-uiview-layer

the visible path from and apply a shadow CGMutablePathRef path CGPathCreateMutable when drawing the shadow for a path whichs bounding box is not known pass CGPathGetPathBoundingBox visiblePath instead of bounds in the following line 42 cuould just be any offset 0 CGPathAddRect path NULL CGRectInset bounds 42 42 Add..

How to Sync iPhone Core Data with web server, and then push to other devices?

http://stackoverflow.com/questions/5035132/how-to-sync-iphone-core-data-with-web-server-and-then-push-to-other-devices

Datafield2 the ObjectId field will reference another table AllObjects ObjectId DeviceId DeviceObjectId . Then when the device pushes up a change set it will pass along the device Id and the objectId from the core data object in the local data store. Then my cloud server will check against the objectId and device Id in the..

How to hide uitabbarcontroller

http://stackoverflow.com/questions/5272290/how-to-hide-uitabbarcontroller

share improve this question I am pasting this from my working code... you can call these methods to hide and show the tabbarcontroller.... just pass tabbarcontroller instance to these functions.. Method call self hideTabBar self.tabBarController Method implementations void hideTabBar UITabBarController tabbarcontroller..

What's the best way to communicate between view controllers?

http://stackoverflow.com/questions/569940/whats-the-best-way-to-communicate-between-view-controllers

look up the objects it needs to do its job e.g. reference a global variable . Instead you should always inject those dependencies into the controller i.e. pass in the objects it needs via methods . If you follow the dependency injection pattern your controller will be modular and reusable. And if you think about where..

How do I set up a simple delegate to communicate between two view controllers?

http://stackoverflow.com/questions/6168919/how-do-i-set-up-a-simple-delegate-to-communicate-between-two-view-controllers

do I set up a simple delegate to communicate between two view controllers I have two UITableViewControllers and need to pass the value from the child view controller to the parent using a delegate. I know what delegates are and just wanted to see a simple to follow example. Thank You.. example. Thank You iphone ios delegates share improve this question Simple example... Let's say the child view controller has a UISlider and we want to pass the value of the slider back to the parent via a delegate. In the child view controller's header file declare the delegate type and its methods ChildViewController.h..

Understanding reference counting with Cocoa and Objective-C

http://stackoverflow.com/questions/6578/understanding-reference-counting-with-cocoa-and-objective-c

hit zero and bad memory will be returned to the caller. The answer is to call autorelease before returning the string. By explicitly calling autorelease we pass the responsibility for releasing the string on to the thread's NSAutoreleasePool which will happen at some later time. The consequence is that the returned string..

Need to find Distance using Gyro+Accelerometer

http://stackoverflow.com/questions/6647314/need-to-find-distance-using-gyroaccelerometer

the expression and similar expressions for displacements in y and z and basic geometry is the Pythagorean theorem So once you have your accelerometer signals passed through a low pass filter and binned in time with sampling interval dt you can find the displacement in x as pardon my C... float dx 0.0f float vx 0.0f for int.. expressions for displacements in y and z and basic geometry is the Pythagorean theorem So once you have your accelerometer signals passed through a low pass filter and binned in time with sampling interval dt you can find the displacement in x as pardon my C... float dx 0.0f float vx 0.0f for int i 1 i n i vx acceleration_x..

`[super viewDidLoad]` convention

http://stackoverflow.com/questions/844195/super-viewdidload-convention

To ARC or not to ARC? What are the pros and cons?

http://stackoverflow.com/questions/8760431/to-arc-or-not-to-arc-what-are-the-pros-and-cons

95 of code out there ARC is brilliant and there is no reason at all to avoid it provided you can handle the OS version restrictions . For non ARC code you can pass fno objc arc on a file by file basis. Xcode unfortunately makes this much harder than it should be to do in practice. You should probably move non ARC code into..

how to create iphone's wobbling icon effect?

http://stackoverflow.com/questions/929364/how-to-create-iphones-wobbling-icon-effect

EDIT I edited the response to add code to put the item back in its original state when done. Also note that you can use the beginAnimations context value to pass along anything to the start stop methods. In this case it's the wobbling object itself so you don't have to rely on specific ivars and the method can be used for..

Reading HTML content from a UIWebView

http://stackoverflow.com/questions/992348/reading-html-content-from-a-uiwebview

improve this question The second question is actually easier to answer. Look at the stringWithContentsOfURL encoding error method of NSString it lets you pass in a URL as an instance of NSURL which can easily be instantiated from NSString and returns a string with the complete contents of the page at that URL. For example..

How would I tint an image programatically on the iPhone?

http://stackoverflow.com/questions/1117211/how-would-i-tint-an-image-programatically-on-the-iphone

context Ordinarily to optimize the drawing you would restrict the actual drawing to only the area passed in to drawRect but since the background image has to be redrawn each time the color changes it's likely the whole thing..

Add UIPickerView & a Button in Action sheet - How?

http://stackoverflow.com/questions/1262574/add-uipickerview-a-button-in-action-sheet-how

and a weak property called delegate of type id SimpleTableViewControllerDelegate . This is how we will pass the selection back to the parent controller. In SimpleTableViewController.m implement the tableview data source and delegate..

NSURLConnection timeout?

http://stackoverflow.com/questions/1424608/nsurlconnection-timeout

object. One way to do this is to construct it via the requestWithURL cachePolicy timeoutInterval method. You can pass in the default NSURLRequestUseProtocolCachePolicy cachePolicy parameter if you don't want to worry about that part. The..

How to call Objective-C from Javascript?

http://stackoverflow.com/questions/1662473/how-to-call-objective-c-from-javascript

navigationType . In your JavaScript code navigate to some fake URL that encodes the information you want to pass to your app like say window.location fake myApp something_happened param1 param2 param3 In your delegate method look for..

How to save picture to iPhone photo library?

http://stackoverflow.com/questions/178915/how-to-save-picture-to-iphone-photo-library

Programmatically add custom event in the iPhone Calendar

http://stackoverflow.com/questions/246249/programmatically-add-custom-event-in-the-iphone-calendar

completion and execute the event handling inside of a block. 2 You need to commit your event now or pass the commit param to your save remove call Everything else stays the same... Add the EventKit framework and #import EventKit..

Objective-C categories in static library

http://stackoverflow.com/questions/2567498/objective-c-categories-in-static-library

to a selector that is defined in the category. And their solution To resolve this issue the static library should pass the ObjC option to the linker. This flag causes the linker to load every object file in the library that defines an Objective..

The simplest way to resize an UIImage?

http://stackoverflow.com/questions/2658738/the-simplest-way-to-resize-an-uiimage

UIImage imageWithImage UIImage image scaledToSize CGSize newSize UIGraphicsBeginImageContext newSize In next line pass 0.0 to use the current device's pixel scaling factor and thus account for Retina resolution . Pass 1.0 to force exact pixel..

Inner shadow effect on UIView layer?

http://stackoverflow.com/questions/4431292/inner-shadow-effect-on-uiview-layer

a shadow CGMutablePathRef path CGPathCreateMutable when drawing the shadow for a path whichs bounding box is not known pass CGPathGetPathBoundingBox visiblePath instead of bounds in the following line 42 cuould just be any offset 0 CGPathAddRect..

How to Sync iPhone Core Data with web server, and then push to other devices?

http://stackoverflow.com/questions/5035132/how-to-sync-iphone-core-data-with-web-server-and-then-push-to-other-devices

another table AllObjects ObjectId DeviceId DeviceObjectId . Then when the device pushes up a change set it will pass along the device Id and the objectId from the core data object in the local data store. Then my cloud server will check..

How to hide uitabbarcontroller

http://stackoverflow.com/questions/5272290/how-to-hide-uitabbarcontroller

I am pasting this from my working code... you can call these methods to hide and show the tabbarcontroller.... just pass tabbarcontroller instance to these functions.. Method call self hideTabBar self.tabBarController Method implementations..

What's the best way to communicate between view controllers?

http://stackoverflow.com/questions/569940/whats-the-best-way-to-communicate-between-view-controllers

job e.g. reference a global variable . Instead you should always inject those dependencies into the controller i.e. pass in the objects it needs via methods . If you follow the dependency injection pattern your controller will be modular and..

How do I set up a simple delegate to communicate between two view controllers?

http://stackoverflow.com/questions/6168919/how-do-i-set-up-a-simple-delegate-to-communicate-between-two-view-controllers

I set up a simple delegate to communicate between two view controllers I have two UITableViewControllers and need to pass the value from the child view controller to the parent using a delegate. I know what delegates are and just wanted to see.. share improve this question Simple example... Let's say the child view controller has a UISlider and we want to pass the value of the slider back to the parent via a delegate. In the child view controller's header file declare the delegate..

Understanding reference counting with Cocoa and Objective-C

http://stackoverflow.com/questions/6578/understanding-reference-counting-with-cocoa-and-objective-c

to the caller. The answer is to call autorelease before returning the string. By explicitly calling autorelease we pass the responsibility for releasing the string on to the thread's NSAutoreleasePool which will happen at some later time. The..

Need to find Distance using Gyro+Accelerometer

http://stackoverflow.com/questions/6647314/need-to-find-distance-using-gyroaccelerometer

for displacements in y and z and basic geometry is the Pythagorean theorem So once you have your accelerometer signals passed through a low pass filter and binned in time with sampling interval dt you can find the displacement in x as pardon my.. y and z and basic geometry is the Pythagorean theorem So once you have your accelerometer signals passed through a low pass filter and binned in time with sampling interval dt you can find the displacement in x as pardon my C... float dx 0.0f float..

`[super viewDidLoad]` convention

http://stackoverflow.com/questions/844195/super-viewdidload-convention

To ARC or not to ARC? What are the pros and cons?

http://stackoverflow.com/questions/8760431/to-arc-or-not-to-arc-what-are-the-pros-and-cons

there is no reason at all to avoid it provided you can handle the OS version restrictions . For non ARC code you can pass fno objc arc on a file by file basis. Xcode unfortunately makes this much harder than it should be to do in practice. You..

how to create iphone's wobbling icon effect?

http://stackoverflow.com/questions/929364/how-to-create-iphones-wobbling-icon-effect

to put the item back in its original state when done. Also note that you can use the beginAnimations context value to pass along anything to the start stop methods. In this case it's the wobbling object itself so you don't have to rely on specific..

Reading HTML content from a UIWebView

http://stackoverflow.com/questions/992348/reading-html-content-from-a-uiwebview

is actually easier to answer. Look at the stringWithContentsOfURL encoding error method of NSString it lets you pass in a URL as an instance of NSURL which can easily be instantiated from NSString and returns a string with the complete contents..

iPhone- Twitter API GET Users Followers/Following

http://stackoverflow.com/questions/11600621/iphone-twitter-api-get-users-followers-following

case we want to receive it in JSON NSURL followingURL NSURL URLWithString @ http api.twitter.com 1 friends ids.json Pass in the parameters basically '.ids.json screen_name screen_name ' NSDictionary parameters NSDictionary dictionaryWithObjectsAndKeys..

Pass an argument to selector

http://stackoverflow.com/questions/12297511/pass-an-argument-to-selector

an argument to selector I have a UIButton inside my custom cell and I want to trigger an action when the user presses that..

Pass NSMutableArray to one view controller to another

http://stackoverflow.com/questions/16142078/pass-nsmutablearray-to-one-view-controller-to-another

NSMutableArray to one view controller to another I am trying to pass a NSMutableArray between two view controller. Please..

How do I create blurred text in an iPhone view?

http://stackoverflow.com/questions/227305/how-do-i-create-blurred-text-in-an-iphone-view

pass small blur using rotated pattern to sample 17 texels . .. . X rotated samples filter across texel corners . .. . Pass one center nearest sample glVertexPointer 2 GL_FLOAT sizeof V2fT2f quad 0 .x glTexCoordPointer 2 GL_FLOAT sizeof V2fT2f.. GL_TEXTURE_ENV_MODE GL_MODULATE glColor4f 1.0 5 1.0 5 1.0 5 1.0 validateTexEnv glDrawArrays GL_TRIANGLE_STRIP 0 4 Pass two accumulate two rotated linear samples glTexParameteri GL_TEXTURE_2D GL_TEXTURE_MIN_FILTER GL_LINEAR glTexParameteri.. GL_SRC0_ALPHA GL_PRIMARY_COLOR glColor4f 0.5 0.5 0.5 2.0 5 validateTexEnv glDrawArrays GL_TRIANGLE_STRIP 0 4 Pass three accumulate two rotated linear samples for i 0 i 4 i tmpquad i .x quad i .s 0.5 offw tmpquad i .y quad i .t 1.5 offh..

iPhone: How to Pass Data Between Several Viewcontrollers in a Tabbar App

http://stackoverflow.com/questions/2363777/iphone-how-to-pass-data-between-several-viewcontrollers-in-a-tabbar-app

How to Pass Data Between Several Viewcontrollers in a Tabbar App I have following problem I have built a tabbar application with 4..

The simplest way to resize an UIImage?

http://stackoverflow.com/questions/2658738/the-simplest-way-to-resize-an-uiimage

In next line pass 0.0 to use the current device's pixel scaling factor and thus account for Retina resolution . Pass 1.0 to force exact pixel size. UIGraphicsBeginImageContextWithOptions newSize NO 0.0 image drawInRect CGRectMake 0 0 newSize.width..

Dismiss popover using UIbutton

http://stackoverflow.com/questions/3565968/dismiss-popover-using-uibutton

alloc initWithNibName @ MyPopoverViewController bundle nil detailViewController setDelegate self Pass the selected object to the new view controller. myPopoverController UIPopoverController alloc initWithContentViewController..

Clicking a link in UIWebView pushes onto the NavigationView stack

http://stackoverflow.com/questions/3815167/clicking-a-link-in-uiwebview-pushes-onto-the-navigationview-stack

stack. It might look like that LatestView latestView LatestView alloc initWithNibName @ LatestView bundle nil Pass the URL here depends on how you passed it into the WebView in the first place Add the ViewController to the stack self.navigationController..

How to capture UIView to UIImage without loss of quality on retina display

http://stackoverflow.com/questions/4334233/how-to-capture-uiview-to-uiimage-without-loss-of-quality-on-retina-display

Switch from use of UIGraphicsBeginImageContext to UIGraphicsBeginImageContextWithOptions as documented on this page . Pass 0.0 for scale the third argument and you'll get a context with a scale factor equal to that of the screen. UIGraphicsBeginImageContext..

UIImagePickerController camera preview is portrait in landscape app

http://stackoverflow.com/questions/538041/uiimagepickercontroller-camera-preview-is-portrait-in-landscape-app

The answer is more ridiculous than you might think. I had the same problem and found a solution in a forum somewhere. Pass your taken image into a method like this Code from http discussions.apple.com thread.jspa messageID 7949889 UIImage scaleAndRotateImage..

What is objc_setAssociatedObject() and in what cases should it be used?

http://stackoverflow.com/questions/5909412/what-is-objc-setassociatedobject-and-in-what-cases-should-it-be-used

object for the association. key The key for the association. value The value to associate with the key key for object. Pass nil to clear an existing association. policy The policy for the association. For possible values see œAssociative Object..

Fetch all events from EventStore EventKit iOS

http://stackoverflow.com/questions/6077613/fetch-all-events-from-eventstore-eventkit-ios

24 seconds 86400 seconds from startDate NSDate endDate NSDate dateWithTimeIntervalSinceNow 86400 Create the predicate. Pass it the default calendar. NSArray calendarArray NSArray arrayWithObject defaultCalendar NSPredicate predicate self.eventStore..

Iphone navigate to previous/next viewController

http://stackoverflow.com/questions/6244776/iphone-navigate-to-previous-next-viewcontroller

self self.currentDetailViewSection indexPath.section self.currentDetailViewRow indexPath.row ... Pass the selected object to the new view controller. self navigationController pushViewController detailViewController animated..

Accelerometer Low Pass Filtering

http://stackoverflow.com/questions/6942626/accelerometer-low-pass-filtering

Low Pass Filtering Still on the BigNerdRanch iOS Development book. In the Accelerometer chapter they first implement accelerometer..

CoreData error driving me crazy… CoreData: Serious application error. An exception caught from delegate of NSFetchedResultsController

http://stackoverflow.com/questions/7844326/coredata-error-driving-me-crazy-coredata-serious-application-error-an-excep

one shown in the navigation control RootViewController rootViewController RootViewController alloc initWithTabBar Pass the managed object context to the view controller. rootViewController.managedObjectContext context create the navigation.. blocalNavigationController UINavigationController alloc initWithRootViewController vcSimulatorController Pass the managed object context to the view controller. vcSimulatorController.managedObjectContext context add this controller..

Pass touch from UIScrollView to superview (UIButton)

http://stackoverflow.com/questions/8830671/pass-touch-from-uiscrollview-to-superview-uibutton

touch from UIScrollView to superview UIButton Possibly a duplicate but I couldn't find an exact answer to my problem searching..