Xcode UIViewController

So I am brand new to development. Currently in school for software development and we're just getting started on iOS. In Xcode the book is telling me to create a new file and select UIViewController, but this is not showing as an option. It just gives me ObjectiveC class, etc. I used Objective C class and then selected UIViewController from there and it only gave me a .h and .m file. To create the .xib file I had to go through the same process and click View in User Interface options. Now the issue seems to be that they are not connected, and I cannot figure out how to connect them. Any help out there would be greatly appreciated! Btw, I'm developing for iOS 6 with the latest version of Xcode.

You need to state what Xcode version you are using, and be more specific about the instructions and what is going wrong.  In Xcode 4.x, if you have already created your view controller class, you connect it to the view controller on the storyboard/xib by selecting the view controller, showing the Identity Inspector, and selecting the view controller class name from the Class dropdown.
In this picture, I have set the class associated with view controller to MasterViewController.

Similar Messages

  • Hi all, i'm new and facing a problem while creating a new file for Xcode. I can't select the box "with XIB for user interface" if the subclass is "UIViewController".this problem happen after i upgrade Xcode to 4.6 version.Appreciate for any help rendered.

    Hi all, i'm new to Mac book & Xcode. I'm learning and facing problems while creating a new file for Xcode. Before i upgrade the software, i have no issue to create simple steps in apps. After upgrade Xcode to 4.6 version, i'm facing lot's of issue eg.
    1) "the identity "iphone developer" doesn't match any valid certificate/ private key pair",
    2) can't select the box "with XIB for user interface" if the subclass is "UIViewController"..
    Appreciate for any help rendered.

    Mikko777 wrote:So what is the best?
    I wouldn't judge. I've been to Arch for a week, you know? But as said, it's VERY close to it.
    What I dislike after a week is makepkg not handling dependencies automatically (which would be overhead, so probably not appropriate).
    Mikko777 wrote:Also theres KDEmod for modular kde, dunno if its for 64 bits tho.
    Don't actually need that as said ... I see no real benefit of having that other than not beeing a KDE user or having Gentoos useflags.
    Mikko777 wrote:PS:You produce a lot of text and welcome smile
    Yeah. Wonder why I'm still employed? So do I ...

  • How to create a calendar using Xcode 4.5

    I am new to xcode and trying to create a calendar in one of the tabs in a tab based application. I dont know what needs to be added in the view area, but from my searching net I have come to know that using eventkit.h one can create a calender. So I added Eventkit.framework in my Framework folder.
    Then in calendarviewcontroller.h
    #import <EventKit/EventKit.h>
    #import <UIKit/UIKit.h>
    @interface CalenderViewController : UIViewController
    @end
    and in .m I somehow found out to insert following
    -(IBAction)AddEvent:(id)sender{
    EKEventStore *eventDB = [[[EKEventStore alloc] init] autorelease];
    EKEvent *holidayEvent  = [EKEvent eventWithEventStore:eventDB];
    holidayEvent.title     = [self.item customValueForKey:@"title"];
    holidayEvent.startDate = startDate;
    holidayEvent.endDate   = endDate;
    holidayEvent.allDay = YES;
    [holidayEvent setCalendar:[eventDB defaultCalendarForNewEvents]];
    NSError *error;
    [eventDB saveEvent:holidayEvent span:EKSpanThisEvent error:&error];
    if (error == noErr)
        [self sendDidFinish];
        return NO;
    else
        [self sendDidFailWithError:error];
    but I dont know what needs to be added before this code in .m file.
    Kindly suggest

    from my searching net I have come to know that using eventkit.h one can create a calender. So I added Eventkit.framework in my Framework folder.
    That code fragment does not create a calendar, it adds a calendar event to the default calendar.
    If you need a visual calendar control, Cocoa does not include that. Various 3rd-party controls are available to provide a calendar UI. I recommend selecting one based on your specific requirements. For example, this one has a similar appearance to the Calendar app.
    https://github.com/klazuka/Kal
    You probably have two broad requirement areas: (1) Manage the calendar and event data, which can be done with Event Kit. (2) The user interface to view the calendar and event data, which can be custom developed, optionally using a 3rd-party library.  Be sure to fully understand your requirements before selecting a 3rd-party control.
    If you are a new Objective-C developer, expect a learning curve.

  • XCode 4.4.1 crashing

    XCode 4.4.1 is crashing on my 10.8.1 Mountain Lion Build
    I created a small project called "CloudBuilder" and I following along with my standford IPhone Class.
    I actually used all XCode versions ince 3.2 and I appailed that XCode is still crashing.
    Before you Apple FanBoys jump in and ssay it not happening to you, keep in mind I getting XCode crashin on
    every version of XCode I used so its defiantly not an install issue.
    I running on a top of line MacBook Pro 8 GB memory Core i7 with 512 GB SSD so hardwrae is nice.
    YES I have delete the two preferences files and reboot and rerun XCode (same issue)
    This is a bug in XCode pr maybe the IOS SDK.
    It happens whn I in IB and I dragging controls on the view. When I flip between an IBOutlet and an IBAction
    XCode freaks out and crashes sometimes. The bug seems intermediate and I cannot replicate it often,
    I keep closing XCode and delete preference files and rebooting.
    Yes, I installed the command line tools from 10.8.1 and the updated 10.8.1 Core Data library
    Eventually its goes away but will reappear later when my project gets bigger.
    Here the console output
    Anybody else seeing this?
    Date/Time:       2012-07-31 03:15:55.666 -0700
    OS Version:      iPhone OS 5.1.1 (9B206)
    Report Version:  104
    Exception Type:  EXC_CRASH (SIGABRT)
    Exception Codes: 0x00000000, 0x00000000
    Crashed Thread:  0
    Last Exception Backtrace:
    0   CoreFoundation                          0x37c1588f __exceptionPreprocess + 163
    1   libobjc.A.dylib                         0x32f46259 objc_exception_throw + 33
    2   CoreFoundation                          0x37c155c5 -[NSException init] + 1
    3   Foundation                              0x36dbf323 _NSSetUsingKeyValueSetter + 131
    4   Foundation                              0x36dbee23 -[NSObject(NSKeyValueCoding) setValue:forKey:] + 231
    5   UIKit                                   0x30bb0965 -[UIView(CALayerDelegate) setValue:forKey:] + 157
    6   Foundation                              0x36d98f09 -[NSObject(NSKeyValueCoding) setValue:forKeyPath:] + 133
    7   CoreFoundation                          0x37b747d3 -[NSObject performSelector:] + 39
    8   CoreFoundation                          0x37b75461 -[NSArray makeObjectsPerformSelector:] + 153
    9   UIKit                                   0x30c660ad -[UINib instantiateWithOwner:options:] + 897
    10  UIKit                                   0x30bd43c7 -[UIViewController _loadViewFromNibNamed:bundle:] + 247
    11  UIKit                                   0x30ab1c59 -[UIViewController loadView] + 89
    12  UIKit                                   0x30a27c17 -[UIViewController view] + 51
    13  UIKit                                   0x30a26461 -[UIWindow addRootViewControllerViewIfPossible] + 45
    14  UIKit                                   0x30a18e87 -[UIWindow _setHidden:forced:] + 295
    15  UIKit                                   0x30a897d5 -[UIWindow makeKeyAndVisible] + 25
    16  UIKit                                   0x30a26e6d -[UIApplication _callInitializationDelegatesForURL:payload:suspended:] + 1633
    17  UIKit                                   0x30a207dd -[UIApplication _runWithURL:payload:launchOrientation:statusBarStyle:statusBarHidden:] + 409
    18  UIKit                                   0x309eeac3 -[UIApplication handleEvent:withNewEvent:] + 1011
    19  UIKit                                   0x309ee567 -[UIApplication sendEvent:] + 55
    20  UIKit                                   0x309edf3b _UIApplicationHandleEvent + 5827
    21  GraphicsServices                        0x3604f22b PurpleEventCallback + 883
    22  CoreFoundation                          0x37be9523 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE1_PERFORM_FUNCTION__ + 39
    23  CoreFoundation                          0x37be94c5 __CFRunLoopDoSource1 + 141
    24  CoreFoundation                          0x37be8313 __CFRunLoopRun + 1371
    25  CoreFoundation                          0x37b6b4a5 CFRunLoopRunSpecific + 301
    26  CoreFoundation                          0x37b6b36d CFRunLoopRunInMode + 105
    27  UIKit                                   0x30a1f86b -[UIApplication _run] + 551
    28  UIKit                                   0x30a1ccd5 UIApplicationMain + 1081
    29  CloudBuilder                            0x000a9145 main (main.m:16)
    30  CloudBuilder                            0x000a8a3c start + 40
    Thread 0 name:  Dispatch queue: com.apple.main-thread
    Thread 0 Crashed:
    0   libsystem_kernel.dylib                  0x3087632c __pthread_kill + 8
    1   libsystem_c.dylib                       0x32e07208 pthread_kill + 48
    2   libsystem_c.dylib                       0x32e00298 abort + 88
    3   libc++abi.dylib                         0x37290f64 abort_message + 40
    4   libc++abi.dylib                         0x3728e346 default_terminate() + 18
    5   libobjc.A.dylib                         0x32f46350 _objc_terminate + 140
    6   libc++abi.dylib                         0x3728e3be safe_handler_caller(void (*)()) + 70
    7   libc++abi.dylib                         0x3728e44a std::terminate() + 14
    8   libc++abi.dylib                         0x3728f81e __cxa_rethrow + 82
    9   libobjc.A.dylib                         0x32f462a2 objc_exception_rethrow + 6
    10  CoreFoundation                          0x37b6b506 CFRunLoopRunSpecific + 398
    11  CoreFoundation                          0x37b6b366 CFRunLoopRunInMode + 98
    12  UIKit                                   0x30a1f864 -[UIApplication _run] + 544
    13  UIKit                                   0x30a1ccce UIApplicationMain + 1074
    14  CloudBuilder                            0x000a913e main (main.m:16)
    15  CloudBuilder                            0x000a8a34 start + 32
    Thread 1 name:  Dispatch queue: com.apple.libdispatch-manager
    Thread 1:
    0   libsystem_kernel.dylib                  0x308663a8 kevent + 24
    1   libdispatch.dylib                       0x34540f04 _dispatch_mgr_invoke + 708
    2   libdispatch.dylib                       0x34540c22 _dispatch_mgr_thread + 30
    Thread 2:
    0   libsystem_kernel.dylib                  0x30876cd4 __workq_kernreturn + 8
    1   libsystem_c.dylib                       0x32dc2f36 _pthread_wqthread + 610
    2   libsystem_c.dylib                       0x32dc2cc8 start_wqthread + 0
    Thread 3:
    0   libsystem_kernel.dylib                  0x30876cd4 __workq_kernreturn + 8
    1   libsystem_c.dylib                       0x32dc2f36 _pthread_wqthread + 610
    2   libsystem_c.dylib                       0x32dc2cc8 start_wqthread + 0
    Thread 4 name:  WebThread
    Thread 4:
    0   libsystem_kernel.dylib                  0x30866004 mach_msg_trap + 20
    1   libsystem_kernel.dylib                  0x308661fa mach_msg + 50
    2   CoreFoundation                          0x37be93ec __CFRunLoopServiceMachPort + 120
    3   CoreFoundation                          0x37be8124 __CFRunLoopRun + 876
    4   CoreFoundation                          0x37b6b49e CFRunLoopRunSpecific + 294
    5   CoreFoundation                          0x37b6b366 CFRunLoopRunInMode + 98
    6   WebCore                                 0x30ff3c9c RunWebThread(void*) + 396
    7   libsystem_c.dylib                       0x32dc872e _pthread_start + 314
    8   libsystem_c.dylib                       0x32dc85e8 thread_start + 0
    Thread 0 crashed with ARM Thread State:
        r0: 0x00000000    r1: 0x00000000      r2: 0x00000001      r3: 0x00000000
        r4: 0x00000006    r5: 0x3e742d98      r6: 0x00000002      r7: 0x2fea59c0
        r8: 0x3f938b30    r9: 0x00000000     r10: 0x3e29542c     r11: 0x00193c50
        ip: 0x00000148    sp: 0x2fea59b4      lr: 0x32e0720f      pc: 0x3087632c
      cpsr: 0x00000010
    Binary Images:
       0xa7000 -    0xa9fff +CloudBuilder armv7  <f9f4e4be658934dda3902ab3474f68bb> /var/mobile/Applications/58867A7E-923D-4D91-B3E7-E030AE3D5A1B/CloudBuilder.app/ CloudBuilder
       0xb2000 -    0xb4fff +libXcodeDebuggerSupport.dylib armv7  <4139c9fae6e832c9ab1eb62e3330e328> /Developer/usr/lib/libXcodeDebuggerSupport.dylib
    0x2fea6000 - 0x2fec7fff  dyld armv7  <77eddfd654df393ba9c95ff01715fd08> /usr/lib/dyld
    0x300f4000 - 0x300f4fff  vecLib armv7  <a2cfe25e77aa36bfb4a30b2d0d2dd465> /System/Library/Frameworks/Accelerate.framework/Frameworks/vecLib.framework/vec Lib
    0x301c6000 - 0x3029efff  vImage armv7  <caf3648be2933384b6aa1ae7408ab4f0> /System/Library/Frameworks/Accelerate.framework/Frameworks/vImage.framework/vIm age
    0x302cf000 - 0x302d9fff  libvMisc.dylib armv7  <e8248c797b9b363594bb652ddf7ce16d> /System/Library/Frameworks/Accelerate.framework/Frameworks/vecLib.framework/lib vMisc.dylib
    0x303af000 - 0x30670fff  libLAPACK.dylib armv7  <0e94e9a7e7a334649afaccae0f1215a2> /System/Library/Frameworks/Accelerate.framework/Frameworks/vecLib.framework/lib LAPACK.dylib
    0x30682000 - 0x3068afff  MobileWiFi armv7  <b76c3e9fb78234c392058250d4620e72> /System/Library/PrivateFrameworks/MobileWiFi.framework/MobileWiFi
    0x3068d000 - 0x306b2fff  OpenCL armv7  <f4b08361179a3f6bb033415b0d7c6251> /System/Library/PrivateFrameworks/OpenCL.framework/OpenCL
    0x306ff000 - 0x306fffff  libCVMSPluginSupport.dylib armv7  <a80aaa9989483ce3a496a061fd1e9e0a> /System/Library/Frameworks/OpenGLES.framework/libCVMSPluginSupport.dylib
    0x30865000 - 0x3087bfff  libsystem_kernel.dylib armv7  <311f379a9fde305d80c1b22b7dd2e52a> /usr/lib/system/libsystem_kernel.dylib
    0x308c1000 - 0x308d2fff  DataAccessExpress armv7  <e6144ba265da3bb7b9a263aa1a29b054> /System/Library/PrivateFrameworks/DataAccessExpress.framework/DataAccessExpress
    0x308d3000 - 0x30980fff  libxml2.2.dylib armv7  <58d47f064e0232119f4b838ad659f9c1> /usr/lib/libxml2.2.dylib
    0x30981000 - 0x30997fff  EAP8021X armv7  <952fcfdec0633aff923768fca1a26fcb> /System/Library/PrivateFrameworks/EAP8021X.framework/EAP8021X
    0x309eb000 - 0x30e8dfff  UIKit armv7  <cd513a2f22f53d698c3e10f6fe48a63e> /System/Library/Frameworks/UIKit.framework/UIKit
    0x30f0b000 - 0x30f46fff  libCGFreetype.A.dylib armv7  <55941c96cf1f3b048e72a148c4496c16> /System/Library/Frameworks/CoreGraphics.framework/Resources/libCGFreetype.A.dyl ib
    0x30f4a000 - 0x31709fff  WebCore armv7  <2690c38c9c5f3c09975d619dd1dfbed7> /System/Library/PrivateFrameworks/WebCore.framework/WebCore
    0x3176e000 - 0x318b7fff  libicucore.A.dylib armv7  <b70646b63f1f3b33896dd8cb91b8dab1> /usr/lib/libicucore.A.dylib
    0x31a73000 - 0x31ac4fff  libstdc++.6.dylib armv7  <c352af5a742e3c7a8d4d7e5f6f454793> /usr/lib/libstdc++.6.dylib
    0x31c0f000 - 0x31c14fff  libcopyfile.dylib armv7  <52e874396c393ed29099789ce702cfe2> /usr/lib/system/libcopyfile.dylib
    0x31e5c000 - 0x31e5ffff  libsystem_network.dylib armv7  <356cb66612e836968ef24e6e5c3364cc> /usr/lib/system/libsystem_network.dylib
    0x31e60000 - 0x31ea5fff  GeoServices armv7  <a26be2e76e8730ab91a16502aba376be> /System/Library/PrivateFrameworks/GeoServices.framework/GeoServices
    0x31ead000 - 0x31eb9fff  CoreVideo armv7  <364fa32d513f3c11b50970120545f1a8> /System/Library/Frameworks/CoreVideo.framework/CoreVideo
    0x31ebc000 - 0x31ef1fff  SystemConfiguration armv7  <4464a4e3bb3f32f7abaa35ebf31fda49> /System/Library/Frameworks/SystemConfiguration.framework/SystemConfiguration
    0x31f7c000 - 0x31f7cfff  liblangid.dylib armv7  <644ff4bcfbf337b5b5859e3f0fc0a9a8> /usr/lib/liblangid.dylib
    0x31f7d000 - 0x31f9cfff  libSystem.B.dylib armv7  <0c55744b6f7335eebba4ca2c3d10b43c> /usr/lib/libSystem.B.dylib
    0x321fb000 - 0x321fcfff  libsystem_blocks.dylib armv7  <9fdc27af7350323bbc7d98e14e027907> /usr/lib/system/libsystem_blocks.dylib
    0x321fd000 - 0x32200fff  libcompiler_rt.dylib armv7  <b2c05d8601c13be884097192dca4e187> /usr/lib/system/libcompiler_rt.dylib
    0x32381000 - 0x323b9fff  VideoToolbox armv7  <9f25f38d1cd13a1daff99cfde8884410> /System/Library/PrivateFrameworks/VideoToolbox.framework/VideoToolbox
    0x3287e000 - 0x328c1fff  libcommonCrypto.dylib armv7  <95b49daf4cf038b6bea8010bba3a1e26> /usr/lib/system/libcommonCrypto.dylib
    0x32a6f000 - 0x32a80fff  libxpc.dylib armv7  <ccf25b1e49ce3b2fa58d8c8546755505> /usr/lib/system/libxpc.dylib
    0x32b1c000 - 0x32b20fff  libcache.dylib armv7  <d6a7436ed8dc33d795c9b42baf864882> /usr/lib/system/libcache.dylib
    0x32c7f000 - 0x32c8bfff  libCRFSuite.dylib armv7  <bdb2b4d1a78c39c1ba60d791207aed2a> /usr/lib/libCRFSuite.dylib
    0x32c99000 - 0x32c9cfff  libmacho.dylib armv7  <e52b77623bd031bc807e77029566c777> /usr/lib/system/libmacho.dylib
    0x32d40000 - 0x32db9fff  ProofReader armv7  <6db611d8df6530d480f97a40bc519f70> /System/Library/PrivateFrameworks/ProofReader.framework/ProofReader
    0x32dba000 - 0x32e46fff  libsystem_c.dylib armv7  <f859ce1ad1773f0ba98d7c6e135b7697> /usr/lib/system/libsystem_c.dylib
    0x32e47000 - 0x32e48fff  libdyld.dylib armv7  <977b0ad6f2f433108b4a0324a57cd2ab> /usr/lib/system/libdyld.dylib
    0x32eae000 - 0x32eb2fff  libGFXShared.dylib armv7  <998fccc16cf735dbb62324202995e193> /System/Library/Frameworks/OpenGLES.framework/libGFXShared.dylib
    0x32f3d000 - 0x33003fff  libobjc.A.dylib armv7  <90014d1bc583366d85622e43097df416> /usr/lib/libobjc.A.dylib
    0x33004000 - 0x330f5fff  QuartzCore armv7  <35d64a9da5523ae08c9e41511fd3061b> /System/Library/Frameworks/QuartzCore.framework/QuartzCore
    0x330f6000 - 0x330fcfff  liblockdown.dylib armv7  <9e45ce468a6f31e5b8263f2c224aa800> /usr/lib/liblockdown.dylib
    0x3331b000 - 0x3331ffff  libAccessibility.dylib armv7  <9a17d07b5a3b38cfafdf16f78c99b572> /usr/lib/libAccessibility.dylib
    0x333c8000 - 0x333d1fff  libMobileGestalt.dylib armv7  <4a15e845dc6f3a4a980de66c1cc44c42> /usr/lib/libMobileGestalt.dylib
    0x333f1000 - 0x3343bfff  libvDSP.dylib armv7  <441b42aca07b3da39feab25f8349918f> /System/Library/Frameworks/Accelerate.framework/Frameworks/vecLib.framework/lib vDSP.dylib
    0x334b3000 - 0x334b9fff  libnotify.dylib armv7  <9406297de3e43742887890662a87ab53> /usr/lib/system/libnotify.dylib
    0x334be000 - 0x3367bfff  ImageIO armv7  <02e3578171fa3b6a969b244275fd2bab> /System/Library/Frameworks/ImageIO.framework/ImageIO
    0x3377d000 - 0x33796fff  libRIP.A.dylib armv7  <1828cddc5dd93c61afbefb59587d7f8a> /System/Library/Frameworks/CoreGraphics.framework/Resources/libRIP.A.dylib
    0x33c47000 - 0x33c9ffff  CoreAudio armv7  <be335e8eb6f93594b028a6ddd503a183> /System/Library/Frameworks/CoreAudio.framework/CoreAudio
    0x33d6d000 - 0x33d7cfff  SpringBoardServices armv7  <a2363f8ed49932dba415d2d4cd32fb74> /System/Library/PrivateFrameworks/SpringBoardServices.framework/SpringBoardServ ices
    0x33da0000 - 0x33da2fff  MobileInstallation armv7  <215d93dbb0f63cbf828f9126eb7b5349> /System/Library/PrivateFrameworks/MobileInstallation.framework/MobileInstallati on
    0x3420a000 - 0x343eefff  AudioToolbox armv7  <c91e27850452330ea804db6408840fd2> /System/Library/Frameworks/AudioToolbox.framework/AudioToolbox
    0x343f8000 - 0x344e6fff  libiconv.2.dylib armv7  <2cfefe2ad1d335dd9549562910e7a2e2> /usr/lib/libiconv.2.dylib
    0x344ea000 - 0x344fefff  PersistentConnection armv7  <54091a638f8731cd85ccf00fa06972c3> /System/Library/PrivateFrameworks/PersistentConnection.framework/PersistentConn ection
    0x3453d000 - 0x34553fff  libdispatch.dylib armv7  <9ecfaef4110a3bf9a92d12f0fe8d1d78> /usr/lib/system/libdispatch.dylib
    0x3466a000 - 0x3466bfff  libremovefile.dylib armv7  <402f8956975d3b6fb86ab9b31a43242c> /usr/lib/system/libremovefile.dylib
    0x349a2000 - 0x349c2fff  libxslt.1.dylib armv7  <39348471007e39dab80af68b08390456> /usr/lib/libxslt.1.dylib
    0x34ad9000 - 0x34b58fff  libsqlite3.dylib armv7  <bf01f5ed47b033d8bde30d735ff44416> /usr/lib/libsqlite3.dylib
    0x34b87000 - 0x34b8bfff  AggregateDictionary armv7  <3a3a33f3a05538988c6e2bb363dc46a8> /System/Library/PrivateFrameworks/AggregateDictionary.framework/AggregateDictio nary
    0x34c3b000 - 0x34c58fff  libsystem_info.dylib armv7  <50863bcbf478323e96a8e5b1a83ea6f9> /usr/lib/system/libsystem_info.dylib
    0x34dbc000 - 0x34dbffff  NetworkStatistics armv7  <7848d8ebad99367cb4f7f4e3fe88e5d6> /System/Library/PrivateFrameworks/NetworkStatistics.framework/NetworkStatistics
    0x34e2e000 - 0x34e2efff  libgcc_s.1.dylib armv7  <eb82984fa36c329387aa518aa5205f3d> /usr/lib/libgcc_s.1.dylib
    0x34e4d000 - 0x34e8bfff  IOKit armv7  <fcda71d29d6136dfbd84c1725f4998e5> /System/Library/Frameworks/IOKit.framework/Versions/A/IOKit
    0x34e8c000 - 0x34e8cfff  libunwind.dylib armv7  <e0a73a57795f3e1698a52ebe6fc07005> /usr/lib/system/libunwind.dylib
    0x3570f000 - 0x35715fff  liblaunch.dylib armv7  <aa2bcba6fc7a36a191958fef2e995475> /usr/lib/system/liblaunch.dylib
    0x35716000 - 0x3574dfff  Security armv7  <eea56f71fde83c2981f9281dc7823725> /System/Library/Frameworks/Security.framework/Security
    0x357be000 - 0x357e1fff  Bom armv7  <c3435ecd2e5839f89de51edad0e1bb00> /System/Library/PrivateFrameworks/Bom.framework/Bom
    0x357e2000 - 0x35806fff  PrintKit armv7  <08509c7bc915358b953de6f5cbef5c56> /System/Library/PrivateFrameworks/PrintKit.framework/PrintKit
    0x35807000 - 0x3584ffff  CoreMedia armv7  <e274e1b894753b2eb05cf7b22a36d0c1> /System/Library/Frameworks/CoreMedia.framework/CoreMedia
    0x35850000 - 0x3589cfff  CoreTelephony armv7  <b8f80d5d594c31d2b5d8fba9fdedb7e1> /System/Library/Frameworks/CoreTelephony.framework/CoreTelephony
    0x3589d000 - 0x358a1fff  IOMobileFramebuffer armv7  <42dbc26828e934acabb4f3b0a35d8250> /System/Library/PrivateFrameworks/IOMobileFramebuffer.framework/IOMobileFramebu ffer
    0x358a5000 - 0x358a9fff  IOSurface armv7  <443ac3aab9283da480dd9dcda3c5c88e> /System/Library/PrivateFrameworks/IOSurface.framework/IOSurface
    0x358e0000 - 0x358e2fff  libCoreVMClient.dylib armv7  <d4d4aa3090c83e87bcb15ed00b93fd5c> /System/Library/Frameworks/OpenGLES.framework/libCoreVMClient.dylib
    0x358e3000 - 0x358e6fff  CaptiveNetwork armv7  <f5cc4b97ce9432da9426f12621453325> /System/Library/PrivateFrameworks/CaptiveNetwork.framework/CaptiveNetwork
    0x35ac4000 - 0x35b0dfff  AddressBook armv7  <b17a2962e9043e0385c3c2c652155f2b> /System/Library/Frameworks/AddressBook.framework/AddressBook
    0x35b11000 - 0x35b1cfff  AccountSettings armv7  <373e59421d983c93931cfbad87b1ae35> /System/Library/PrivateFrameworks/AccountSettings.framework/AccountSettings
    0x35c06000 - 0x35c46fff  libGLImage.dylib armv7  <40448706190031f6b0d9636cc11ee81d> /System/Library/Frameworks/OpenGLES.framework/libGLImage.dylib
    0x35df9000 - 0x35ed0fff  CFNetwork armv7  <765a472c824830eea91b8f02d12867e4> /System/Library/Frameworks/CFNetwork.framework/CFNetwork
    0x36038000 - 0x36042fff  libbz2.1.0.dylib armv7  <40e4045fb79e382b8833707746cf28b1> /usr/lib/libbz2.1.0.dylib
    0x36043000 - 0x36049fff  MobileKeyBag armv7  <e1f06241ef0e3f0aae00f15df572077e> /System/Library/PrivateFrameworks/MobileKeyBag.framework/MobileKeyBag
    0x3604a000 - 0x36054fff  GraphicsServices armv7  <cb64e146a8ee3fda9e80ffae1ccc9c5a> /System/Library/PrivateFrameworks/GraphicsServices.framework/GraphicsServices
    0x36055000 - 0x3605dfff  ProtocolBuffer armv7  <0e846afacf823d2b8c029cc3010a8253> /System/Library/PrivateFrameworks/ProtocolBuffer.framework/ProtocolBuffer
    0x3605e000 - 0x3606dfff  OpenGLES armv7  <e80acc691001301e96101bb89d940033> /System/Library/Frameworks/OpenGLES.framework/OpenGLES
    0x3606e000 - 0x36193fff  JavaScriptCore armv7  <2ffc6c87b94434288366bd53765ee267> /System/Library/PrivateFrameworks/JavaScriptCore.framework/JavaScriptCore
    0x361c8000 - 0x3670cfff  FaceCoreLight armv7  <f326d88709683520b251dc53cb847c11> /System/Library/PrivateFrameworks/FaceCoreLight.framework/FaceCoreLight
    0x36712000 - 0x36712fff  Accelerate armv7  <55b24cf91a8b3532bde6733c96f14c08> /System/Library/Frameworks/Accelerate.framework/Accelerate
    0x36713000 - 0x36729fff  DictionaryServices armv7  <6ed2e967136f37d4a4b9b318d6c43b83> /System/Library/PrivateFrameworks/DictionaryServices.framework/DictionaryServic es
    0x36aec000 - 0x36aedfff  DataMigration armv7  <d77f0e8f39ee37f5a2ac713a3fd9e693> /System/Library/PrivateFrameworks/DataMigration.framework/DataMigration
    0x36aee000 - 0x36b5efff  CoreImage armv7  <86ac6f5a267637b6b7f8a831dfc7c64b> /System/Library/Frameworks/CoreImage.framework/CoreImage
    0x36bcb000 - 0x36bccfff  libsystem_sandbox.dylib armv7  <6a8f2f33c7543808a0f4599101c3b61a> /usr/lib/system/libsystem_sandbox.dylib
    0x36bcd000 - 0x36bcefff  CoreSurface armv7  <97f871f09f503c98a6371c2b657430d8> /System/Library/PrivateFrameworks/CoreSurface.framework/CoreSurface
    0x36ca4000 - 0x36caafff  MobileIcons armv7  <ed1b46f917903c9b9baaa2be4392dafe> /System/Library/PrivateFrameworks/MobileIcons.framework/MobileIcons
    0x36cbb000 - 0x36d04fff  libc++.1.dylib armv7  <5b690e5dd5a43a7fb166ade9fe58a7a4> /usr/lib/libc++.1.dylib
    0x36d33000 - 0x36d84fff  CoreText armv7  <5bfac4ee88d03d5b87a1f105abb7756c> /System/Library/Frameworks/CoreText.framework/CoreText
    0x36d96000 - 0x36f14fff  Foundation armv7  <c40ddb073142315bb4ebb214343d0b7f> /System/Library/Frameworks/Foundation.framework/Foundation
    0x36f15000 - 0x36f2afff  libresolv.9.dylib armv7  <66f7557fa4b43979b186e00271839fdb> /usr/lib/libresolv.9.dylib
    0x37174000 - 0x3721efff  libBLAS.dylib armv7  <bf822cc1a3243ae7b104cf73ca22d352> /System/Library/Frameworks/Accelerate.framework/Frameworks/vecLib.framework/lib BLAS.dylib
    0x3722b000 - 0x3722cfff  libdnsinfo.dylib armv7  <9aede8d6579d3430ac39ae5f95cce498> /usr/lib/system/libdnsinfo.dylib
    0x37273000 - 0x37289fff  libmis.dylib armv7  <258bc92be5823b239b4412dd42cb4807> /usr/lib/libmis.dylib
    0x3728a000 - 0x37291fff  libc++abi.dylib armv7  <bab4dcbfc5943d3fbb637342d35e8045> /usr/lib/libc++abi.dylib
    0x37370000 - 0x373bafff  ManagedConfiguration armv7  <f1fbb825def23043830a095b953a9c94> /System/Library/PrivateFrameworks/ManagedConfiguration.framework/ManagedConfigu ration
    0x373bb000 - 0x373befff  CoreTime armv7  <a398de5ba1e43a11b7008e9bb5a7f6fe> /System/Library/PrivateFrameworks/CoreTime.framework/CoreTime
    0x373e3000 - 0x373e3fff  libkeymgr.dylib armv7  <ebd2dddf55d83cf48a18913968775960> /usr/lib/system/libkeymgr.dylib
    0x373e4000 - 0x373f1fff  libbsm.0.dylib armv7  <750a0de73a733019a77144b805d4d2f8> /usr/lib/libbsm.0.dylib
    0x373f4000 - 0x374c4fff  WebKit armv7  <3c5dd2ec46fe3e189c25bba78ad88fa1> /System/Library/PrivateFrameworks/WebKit.framework/WebKit
    0x374c8000 - 0x37504fff  AppSupport armv7  <311eac85b2a433a884dacba77217b49e> /System/Library/PrivateFrameworks/AppSupport.framework/AppSupport
    0x37505000 - 0x3750cfff  AssetsLibraryServices armv7  <38132ecfd74b325fb1a4142bab663c19> /System/Library/PrivateFrameworks/AssetsLibraryServices.framework/AssetsLibrary Services
    0x3752a000 - 0x3752ffff  libsystem_dnssd.dylib armv7  <27bb5462450732e380f5a2c170546e93> /usr/lib/system/libsystem_dnssd.dylib
    0x37987000 - 0x37accfff  CoreGraphics armv7  <903545b89a7f311d95100ac7d1d44709> /System/Library/Frameworks/CoreGraphics.framework/CoreGraphics
    0x37acd000 - 0x37ad9fff  libz.1.dylib armv7  <36ce86a3dc8c344596c8c325615f374b> /usr/lib/libz.1.dylib
    0x37b5c000 - 0x37c73fff  CoreFoundation armv7  <6d450fe923d7387f8b01845e0edd713d> /System/Library/Frameworks/CoreFoundation.framework/CoreFoundation
    0x37c93000 - 0x37ce1fff  CoreLocation armv7  <44550ebedf23334d85441d9743b74e03> /System/Library/Frameworks/CoreLocation.framework/CoreLocation
    0x37d07000 - 0x37d16fff  GenerationalStorage armv7  <d84c3fd0e7bd36e78c256f2f4c5a4e91> /System/Library/PrivateFrameworks/GenerationalStorage.framework/GenerationalSto rage
    0x37d17000 - 0x37d5bfff  MobileCoreServices armv7  <757226927a873d5492be721908077b48> /System/Library/Frameworks/MobileCoreServices.framework/MobileCoreServices

    Tony - Also experiencing the same issue - (also filed under devforums and TSI raised too!) - See content that follows.. I narrowed down the issue to do with CloudStorage (NSUbiquitousKeyValueStore)
    Guys,
    I seriously think this is a new issue occuring after the update of 10.8.1 (MacBookPro Retina) with XCode 4.4.1
    So here goes...
            _ubiquity = [[NSFileManager defaultManager] URLForUbiquityContainerIdentifier:nil];
            _defaults = [NSUserDefaults standardUserDefaults];
            // if ubiquity is available - use it !
            if (_ubiquity) {
                _cloudStore = [NSUbiquitousKeyValueStore defaultStore];
                [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(storeDidChange:) name:NSUbiquitousKeyValueStoreDidChangeExternallyNotificationobject:_cloudStore ];
                [_cloudStore synchronize];
    Later on in the code (someplace else)....
        - (void) setDateOfBirth:(NSDate *)dateOfBirth
            if (self.isCloudEnabled) {
                [_cloudStore setObject:dateOfBirth forKey:@"dateOfBirth"];
            } else {
                [_defaults setObject:dateOfBirth forKey:@"dateOfBirth"];
                [_defaults synchronize];
    (_defaults is a NSUserDefaults object FYI - see above code seg)...
    So when the line (_cloudStore setObject...) occurs, 4 seconds later i receive a crash....
    Aug 23 19:49:04 Sams-MBPr.local filecoordinationd[172]: NSFileCoordinator only handles URLs that use the file: scheme. This one does not:
    x-xcode-log://217822E6-14E4-4004-B9A0-D07C7A613B48
    Per debugger in xcode...
    libxpc.dylib`xpc_get_type:
    0x373dc10c:  ldr    r0, [r0, #4]
    0x373dc10e:  bx     lr
    With the iPhone connected (disconnected from the machine), the error occurs again, and the crashlog shows the following...
    Incident Identifier: DF93D111-C075-4EB0-8287-9EC1964EA7A0
    CrashReporter Key:   c70aa078615a40b5afc89a9d7dc1c8966fb3d753
    Hardware Model:      iPhone3,1
    Process:         gocial [1083]
    Path:            /var/mobile/Applications/4796306D-B310-4EF6-81CD-B9EFE7F40287/gocial.app/gocial
    Identifier:      gocial
    Version:         ??? (???)
    Code Type:       ARM (Native)
    Parent Process:  launchd [1]
    Date/Time:       2012-08-23 20:10:14.967 +0200
    OS Version:      iPhone OS 5.1.1 (9B208)
    Report Version:  104
    Exception Type:  EXC_BAD_ACCESS (SIGSEGV)
    Exception Codes: KERN_INVALID_ADDRESS at 0x00000004
    Crashed Thread:  0
    Thread 0 name:  Dispatch queue: com.apple.ubkvstore
    Thread 0 Crashed:
    0   libxpc.dylib                  0x373dc10c xpc_get_type + 0
    1   libxpc.dylib                  0x373dd7da xpc_connection_send_message_with_reply_sync + 14
    2   SyncedDefaults                0x33393f84 -[SYDClient _sendMessageWithReplySync:] + 236
    3   SyncedDefaults                0x33393c7a -[SYDClient sendMessageWithName:userInfo:] + 38
    4   SyncedDefaults                0x333956f4 -[SYDRemotePreferencesSource synchronizeForced:] + 672
    5   Foundation                    0x3296caa0 __66-[NSUbiquitousKeyValueStore _synchronizeForced:notificationQueue:]_block_invoke_0 + 124
    6   libdispatch.dylib             0x376d0790 _dispatch_barrier_sync_f_invoke + 16
    7   libdispatch.dylib             0x376d0604 dispatch_barrier_sync_f$VARIANT$up + 56
    8   libdispatch.dylib             0x376d0238 dispatch_sync_f$VARIANT$up + 12
    9   libdispatch.dylib             0x376d08b6 dispatch_sync$VARIANT$up + 26
    10  Foundation                    0x3286a05a -[NSUbiquitousKeyValueStore _synchronizeForced:notificationQueue:] + 314
    11  Foundation                    0x32869f18 -[NSUbiquitousKeyValueStore _synchronizeForced:] + 16
    12  Foundation                    0x3296c50c -[NSUbiquitousKeyValueStore _syncConcurrently] + 144
    13  Foundation                    0x328db606 __NSFireTimer + 138
    14  CoreFoundation                0x36c72a2c __CFRUNLOOP_IS_CALLING_OUT_TO_A_TIMER_CALLBACK_FUNCTION__ + 8
    15  CoreFoundation                0x36c72692 __CFRunLoopDoTimer + 358
    16  CoreFoundation                0x36c71268 __CFRunLoopRun + 1200
    17  CoreFoundation                0x36bf449e CFRunLoopRunSpecific + 294
    18  CoreFoundation                0x36bf4366 CFRunLoopRunInMode + 98
    19  GraphicsServices              0x34dbb432 GSEventRunModal + 130
    20  UIKit                         0x34e9dcce UIApplicationMain + 1074
    21  gocial                        0x0003b7b6 main (main.m:16)
    22  gocial                        0x0003b750 start + 32
    Thread 1 name:  Dispatch queue: com.apple.libdispatch-manager 
    Thread 1:
    0   libsystem_kernel.dylib        0x368a43a8 kevent + 24
    1   libdispatch.dylib             0x376d1ea4 _dispatch_mgr_invoke + 708
    2   libdispatch.dylib             0x376d1bc2 _dispatch_mgr_thread + 30
    Thread 2:
    0   libsystem_kernel.dylib        0x368b4cd4 __workq_kernreturn + 8
    1   libsystem_c.dylib             0x331e6f36 _pthread_wqthread + 610
    2   libsystem_c.dylib             0x331e6cc8 start_wqthread + 0
    Thread 3:
    0   libsystem_kernel.dylib        0x368b4cd4 __workq_kernreturn + 8
    1   libsystem_c.dylib             0x331e6f36 _pthread_wqthread + 610
    2   libsystem_c.dylib             0x331e6cc8 start_wqthread + 0
    Thread 4 name:  WebThread
    Thread 4:
    0   libsystem_kernel.dylib        0x368a4004 mach_msg_trap + 20
    1   libsystem_kernel.dylib        0x368a41fa mach_msg + 50
    2   CoreFoundation                0x36c723ec __CFRunLoopServiceMachPort + 120
    3   CoreFoundation                0x36c71124 __CFRunLoopRun + 876
    4   CoreFoundation                0x36bf449e CFRunLoopRunSpecific + 294
    5   CoreFoundation                0x36bf4366 CFRunLoopRunInMode + 98
    6   WebCore                       0x31be7c9c RunWebThread(void*) + 396
    7   libsystem_c.dylib             0x331ec72e _pthread_start + 314
    8   libsystem_c.dylib             0x331ec5e8 thread_start + 0
    Thread 5:
    0   libsystem_kernel.dylib        0x368b4cd4 __workq_kernreturn + 8
    1   libsystem_c.dylib             0x331e6f36 _pthread_wqthread + 610
    2   libsystem_c.dylib             0x331e6cc8 start_wqthread + 0
    Thread 6 name:  com.apple.NSURLConnectionLoader
    Thread 6:
    0   libsystem_kernel.dylib        0x368a4004 mach_msg_trap + 20
    1   libsystem_kernel.dylib        0x368a41fa mach_msg + 50
    2   CoreFoundation                0x36c723ec __CFRunLoopServiceMachPort + 120
    3   CoreFoundation                0x36c71124 __CFRunLoopRun + 876
    4   CoreFoundation                0x36bf449e CFRunLoopRunSpecific + 294
    5   CoreFoundation                0x36bf4366 CFRunLoopRunInMode + 98
    6   Foundation                    0x32846bb2 +[NSURLConnection(Loader) _resourceLoadLoop:] + 302
    7   Foundation                    0x32846a7a -[NSThread main] + 66
    8   Foundation                    0x328da58a __NSThread__main__ + 1042
    9   libsystem_c.dylib             0x331ec72e _pthread_start + 314
    10  libsystem_c.dylib             0x331ec5e8 thread_start + 0
    Thread 7 name:  com.apple.CFSocket.private
    Thread 7:
    0   libsystem_kernel.dylib        0x368b4570 __select + 20
    1   CoreFoundation                0x36c7663a __CFSocketManager + 726
    2   libsystem_c.dylib             0x331ec72e _pthread_start + 314
    3   libsystem_c.dylib             0x331ec5e8 thread_start + 0
    Thread 0 crashed with ARM Thread State:
        r0: 0x00000000    r1: 0x00000000      r2: 0x00000001      r3: 0x00000000
        r4: 0x00000000    r5: 0x00264aa0      r6: 0x3f665380      r7: 0x2fe36ae0
        r8: 0x3fa99670    r9: 0x0026f320     r10: 0x00000000     r11: 0x37fb38df
        ip: 0x3eede1c0    sp: 0x2fe36a9c      lr: 0x373dd7e1      pc: 0x373dc10c
      cpsr: 0x80000030
    Notice the first lines (libxpc)....
    Appreciate any help - 10 minutes before updating my MBPr, everything was working fine - Now im royally f**....
    Have escalated this to TSI and awaiting a response. If anyone has advice, please feel free to reach out at sam.colak at me dot com.
    Thanks in advance,
    Samuel

  • Installation Directory in Xcode 4

    I'm writing Mac app for my own use only.
    I keep in certain folder all my AppleScript Editor apps and run them from there.
    "Xcode also has an Installation Directory build setting that lets you install a build product in a specific location. The Installation Directory is in the Deployment collection."
    How i tell Xcode 4 to put working copy of app to this custom folder without moving any stuff in DerivedData folder?
    I can't have any DerivedData stuff in this folder, because it would mess my workflows.
    Thanks

    1st. create a new viewController in your storyboard.
    2nd. create new file that's called objective-C Class, choose a name for your class (example SecondViewController) and make sure that you have selected UIViewController.
    If you have created that file go to you SecondViewController.m, and scroll down to
    return (interfaceOrientation != UIInterfaceOrientationPortraitUpsideDown);
    Delete: return (interfaceOrientation != UIIinterfaceOrientation PortraitUpsideDown);, and put in state of that: return YES;
    Dont forget to link up that SecondViewController to your new viewController in storyboard.
    I hope that this will solve your problem.

  • SIGABRT Error Xcode 5

    Am making an iPhone app and I am new to Xcode and IOS programming - whenever I run the app in the simulator and tap on the button which sends me to the next view it crashes and gives me this message:
    In the debugger it gives me this:
    2014-02-26 19:42:25.396 ShoeForYouStoryboard[2452:70b] -[UIViewController tableView:numberOfRowsInSection:]: unrecognized selector sent to instance 0x8c79730
    2014-02-26 19:42:25.400 ShoeForYouStoryboard[2452:70b] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[UIViewController tableView:numberOfRowsInSection:]: unrecognized selector sent to instance 0x8c79730'
    *** First throw call stack:
    Thanks if you can help.

    Your app is using auto layout, which was introduced in iOS 6. Your iPhone is running iOS 5, which doesn't support auto layout. That's why the code works on your iPad, but not your iPhone.
    If you want your app to work on both devices you have to turn off layout and set your app's deployment target to iOS 5. To turn off auto layout, select your xib file from the project navigator. Open the file inspector by choosing View > Utilities > Show File Inspector. Deselect the Use Auto Layout checkbox.
    To change the deployment target, select your project from the project navigator to open the project editor. Select your project from the left side of the project editor. Click the Info button at the top of the editor. Choose iOS 5.0 from the iOS Deployment Target combo box.

  • Xcode debugger not showing my instance variables!!

    I hate asking questions like this.
    I set a breakpoint in an IBAction method 'pushed:' inside FooViewController.  At runtime I pressed a GUI button and processing stopped in pushed:.
    In the data-viewing pane of xcode, I see
    {code}
    self = (FooViewController *) 0x... etc.
    {code}
    Indented under this is
    {code}
    UIViewController = (UIViewController) { ...
    {code}
    Nowhere do I see any of my instance variables!!
    Now, they were synthesized from properties, but that doesn't matter, does it?
    The code that proceeds to set some instance variables runs fine.
    Why isn't xcode displaying self's instance vars?
    Thanks,
    Chap

    Yes, yours looks like I was expecting mine to look.
    Note that viewDidLoad (below) does work correctly, producing the expected results in the simulator!
    Hangman3ViewController.h:
    @interface Hangman3ViewController : UIViewController {
    @property (         nonatomic )           NSInteger  wordLength;
    @property ( retain, nonatomic )           NSString  *alphabet;
    @property (         nonatomic )           unichar    guess;
    @property (         nonatomic )           NSInteger  guessNo;
    @property ( retain, nonatomic )           NSMutableString *board;
    @property ( retain, nonatomic ) IBOutlet  UILabel   *boardLabel;
    @property ( retain, nonatomic ) IBOutlet  UILabel   *guessNumberLabel;
    @property ( retain, nonatomic ) IBOutlet  NSArray   *keyboardButtons;
    - (IBAction)letter:(id)sender;
    - (void)showBoard;
    @end
    and, Hangman3ViewController.m:
    #import "Hangman3ViewController.h"
    @implementation Hangman3ViewController
    @synthesize wordLength       = _wordLength;  // preprocessor command to gen getter/setter and instance variable
    @synthesize boardLabel       = _boardLabel;  // preprocessor command to gen getter/setter and instance variable
    @synthesize guessNumberLabel = _guessNumberLabel;  // Guess #n
    @synthesize keyboardButtons  = _keyboardButtons;   // array of buttons
    @synthesize alphabet         = _alphabet;    // A-Z unichars
    @synthesize guess            = _guess;       // unichar
    @synthesize guessNo          = _guessNo;     // int
    @synthesize board            = _board;
    - (IBAction)letter:(id)sender
                Get letter from sender - driven when key button is pressed.
                The button's tag is an int from 0-25, identifying what letter of the alphabet it is.
                Extract that unichar from ALPHABET as 'guess'.  Then, disable the button,
                which has been defined to have its text turn white (invisible) when disabled.
        UIButton *button = (UIButton *)sender;
        self.guess = [self.alphabet characterAtIndex: button.tag];
        NSLog(@"Received keystroke: %C", self.guess);
        [button setEnabled:NO];
    - (void)showBoard
        self.boardLabel.text = self.board;
        self.guessNumberLabel.text = [NSString stringWithFormat:@"Guess #%d", self.guessNo];
    - (void)dealloc
        [_boardLabel release];
        [_guessNumberLabel release];
        [_keyboardButtons release];
        [super dealloc];
    - (void)didReceiveMemoryWarning
        // Releases the view if it doesn't have a superview.
        [super didReceiveMemoryWarning];
        // Release any cached data, images, etc that aren't in use.
    #pragma mark - View lifecycle
    // Implement viewDidLoad to do additional setup after loading the view, typically from a nib.
    - (void)viewDidLoad
        NSLog(@"Hello from viewDidLoad");
        [super viewDidLoad];
        self.alphabet   = @"ABCDEFGHIJKLMNOPQRSTUVWXYZ"; // unichar string
        self.wordLength = 7;  // temp - will be set from flipside later on
        self.guessNo    = 1;
        [self.board setString:@"_______"]; // actually dynamic based on wordLength
        self.board = @"_______";
        [self showBoard];
    - (void)viewDidUnload
        [super viewDidUnload];
        // Release any retained subviews of the main view.
        // e.g. self.myOutlet = nil;
    - (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation
        // Return YES for supported orientations
        return (interfaceOrientation == UIInterfaceOrientationPortrait);
    @end

  • How socket communication is possible in Xcode?

    Hi all,
    I am trying to connect with a server (local host itself) using NSStream in Xcode 3.2.3.
    I refered the below link: http://www.raywenderlich.com/3932/how-to-create-a-socket-based-iphone-app-and-se rver
    I had implemented a separate view control and nib file and did whatever discussed in that site.
    We have implemented the code for input and output streams, and port opened by calling the method specified in that site.
    The new nib was called using :
    LoginViewController *objView = [[LoginViewController alloc] initWithNibName:"LoginViewController" bundle:nil];
    The nib connection was done because I cheked "with XIB for user interface" when the UIViewController Class was added.
    But the app was hanged for no reason.
    When an existing nib was called instead, it was loaded successfully(no socket concepts implemeted).
    Is it because of the code, the app hanged...?
    Is there any way to test whether the port was opened for input stream successfully..?
    I would appreciate if anyone give a step by step explanation for accomplishing the socket connection...
    Also it would be very helpful if somebody could share the code snippets.

    By issuing "recover database" Oracle read information from redo log files and applied them to datafiles. There was SCN difference between Control File and datafiles. All your changes made to database was in redo log files and "Database buffer cache", but wasn't due to power outage database buffer cache was cleared. So your data was not added to datafiles, but was in redo log files. By issuing "recover database" you Oracle applied all changes from redo log files to datafiles and successfully recovered the database

  • Xcode IB Window Problem

    Hello,
    im new to Xcode and have (i think) a simple question. I want to open a new window by pressing a simple push button. I know how to do that. My problem is, that i want to bind it to a condition. When i press a button, there should be a check: for example if textfield 1 = "test123" and textfield 2 = password, then open window x.
    So im just missing the command for opening a window

    This is for iOS but the idea should be similar for OS X:
    .h
    @interface myViewController : UIViewController <UITextFieldDelegate>
        UITextField *aTextField;
    -(void)buttonPressed;
    @property (nonatomic, retain) UITextField *state;
    .m
    @implementation myViewController
    @synthesize aTextField;
    -(void)loadView
        UIView *view = [[UIImageView alloc] initWithImage:[UIImage imageNamed:@"An Image.png"]];
        self.view = view;
        [view release];
        self.view.frame = CGRectMake(114, 212, 540, 620);
        aTextField = [[UITextField alloc] initWithFrame:CGRectMake(70, 230, 80, 22)];
       [self.view addSubview:aTextField];
       self.view.userInteractionEnabled = YES;

  • IPhone SDK 2.0 - xcode fails to build new project

    I downloaded and installed the latest iPhone 2.0 SDK. I did not uninstall any previous tools (xcode/SDK). I assume the 2.0 SDK installation will perform the upgrade in a proper fashion (not requiring one to uninstall the previous SDK/xcode). I start up xcode. I check the version via the about menu. It states that the version of xcode is 'Version 3.1 (Beta)'. The project settings indicate that the Base SDK is Device - iPhone OS 2.0. I checked my system to ensure that my current filesystem has the correct SDK. It has the Macintosh HD->iPhoneOS.pltaform->Developer->SDK's->iPhoneOS2.0.sdk.
    OK, everything seems good up to this point. I create a new xcode application for the iPhone. I then go to compile the application and I get the following error:
    /Developer/iPhone Examples/Foo/Classes/FooAppDelegate.h:16: error: syntax error before 'UIToolbarController'
    Source code line : UIToolbarController *toolbarController;
    Yes I realize that the UIToolbarController API has been removed for SDK 2.0. However, how can one use xcode to build a starter application if it is generating code that references outdated API's???
    Am I doing something wrong? I have searched all the forums but have not come across this issue. Hence, I think something is wrong with my setup/install. If the solution is not to use UIToolbarController API, then why does the xcode still use it to build starter code projects? Also, if we can't use the API, what is it's replacement?
    thanks

    It created more errors, as there are a whole lot of other API's
    that have changed (UIViewController now doesn't resolve
    some of it's members, e.g. toolbarItem).
    Err... hello? Someone just told you what the names have changed to!
    Wow. I have about 1 months worth of work, that I am going to
    have to seriously think about throwing away because of all of
    these growing pains.
    Can't talk about the iPhone SDK specifically, but Xcode in general has great refactoring tools that will make the name changes, in all locations, in a split second for you. No, lets not get hysterical. It's not one month's work at all. It's not even five seconds work.
    I think the newer 2.0 release is causing more problems than solutions.
    That's the whole point. It's not a release. It's a beta. That's what happens with beta's. That's why you sign an NDA (non-disclosure agreement), stating that under no conditions will you discuss the SDK with anyone, and that you agree that things may change without prior notice or even break down completely.
    Basically shutting down all of my development efforts.
    Errrr.... hello again?

  • Loading particle emitter from .sks file in Xcode 5

    I have created a particle effect (which is in my project as a .sks file) in Xcode 5, and have added the SpriteKit framework to my project.
    I'm having problems actually getting it to integrate/show in my UIViewController though.
    I want to create a snow effect as the top view of my View Controller...No luck though!
    I have used the following code in my .m file
    - (SKEmitterNode *) snowEmit
        NSString *snowPath = [[NSBundle mainBundle] pathForResource:@"Snow1" ofType:@"sks"];
        SKEmitterNode *snow = [NSKeyedUnarchiver unarchiveObjectWithFile:snowPath];
        return snow;
    Does anyone know of any sample projects/tutorials/code or have any tips on how I can get this working?
    Many Thanks!

    Cp5 and Cp5.5 both use .cptx file ending, but the two are not the same. If you open a Cp5 file in Cp 5.5 and then save it, you will see a warning dialog telling you that once you DO save it, you won't be able to open it again in Cp5.
    Compatibility Mode has nothing to do with whether the file is Cp5 or Cp5.5 format: http://windows.microsoft.com/en-US/windows-vista/Make-older-programs-run-in-this-version-o f-Windows

  • Xcode 4.1 crashing when moving files

    Upgraded to Lion(so far I love it) all my software is up to date, and updated Xcode to 4.1, now when I open a current project and want to move my files around to be more organized I cant, and it crashes.  Anyone else have this problem? or is there a solution coming soon?

    Same thing since lion install with xCode 4.2.  The following steps make it happen for me every time:
    1. Create a new UIViewController subclass with File > New
    2. Using the Project Navigator, drag the files from the root folder to a subfolder.
    Brings up a message saying there's an "Inconsistent state" and crashes.
    10.7.2, xCode 4.2, Early 2008 MBP

  • I updated Xcode 5 to Xcode 6.0.1. It messed up my previous apps and i don't know how to fix it. Is it possible to uninstall Xcode 6 and go back to Xcode 5?

    Hello,
    I updated Xcode 5 to Xcode 6.0.1. It messed up my previous apps and i don't know how to fix it. Is it possible to uninstall Xcode 6 and go back to Xcode 5?

    I found this solution http://objcsharp.wordpress.com/2014/09/21/how-to-get-back-the-ios-7-sdk-after-up grading-to-xcode-6/

  • Access pictures in a particula folder in photo gallery of iphone xcode

    Hi
    I need to access pictures in my iphone photo gallery through xcode,
    I am trying to search code for this but with little success.
    I somebody has knowldge on this please share.
    thanks

    Here is a link to the apple developer site that might help out.
    http://developer.apple.com/

  • Running Xcode 3.2.3 for the first time, hitting an error immediately

    Hello. I'm learning Objective-C from a book ("Beginning Mac Programming"), and I've run into an error right out of the gate. I've checked the book's errata, as well as left a message with the author, but neither have solved the issue.
    Here's what happened:
    1. I installed Xcode 3.2.3 (I'm on 10.6.4)
    2. Opened it
    3. Selected "New Project"
    4. Application->Cocoa Application
    5. Save app location to my user directory
    6. Hit "Build and Run"
    I haven't touched any code at all, yet I get the following error:
    Build TextApp of project TextApp with configuration Debug
    Ld build/Debug/TextApp.app/Contents/MacOS/TextApp normal x86_64
    cd "/Users/dan's/TextApp"
    setenv MACOSXDEPLOYMENTTARGET 10.6
    /Developer/usr/bin/gcc-4.2 -arch x86_64 -isysroot /Developer/SDKs/MacOSX10.6.sdk -L/Users/dan's/TextApp/build/Debug -F/Users/dan's/TextApp/build/Debug -filelist /Users/dan's/TextApp/build/TextApp.build/Debug/TextApp.build/Objects-normal/x86 _64/TextApp.LinkFileList -mmacosx-version-min=10.6 -framework Cocoa -o /Users/dan's/TextApp/build/Debug/TextApp.app/Contents/MacOS/TextApp
    ld: file not found: /Users/dans/TextApp/build/TextApp.build/Debug/TextApp.build/Objects-normal/x86_ 64/main.o /Users/dans/TextApp/build/TextApp.build/Debug/TextApp.build/Objects-normal/x86_ 64/TextAppAppDelegate.o
    collect2: ld returned 1 exit status
    Command /Developer/usr/bin/gcc-4.2 failed with exit code 1
    Any suggestions? I'm completely new to this, so I have absolutely no clue what to do next. The error command seems to be looking in the "developer" directory, although the code is saved in my user directory.
    Any help would be greatly appreciated.
    Thank you.

    The /Developer directory contains the compiler(s) and various tools and libraries.
    Does your user account name really contain a single quote? If so, it looks like the quote is getting eaten by one of the build scripts, which is resulting in a file path that doesn't exist.

Maybe you are looking for

  • Close vi and open again from a subvi

    Hi, My problem is: I want to close the vi(1) in the subvi (2). How Can I close the vi(1) in my subvi(2) if vi(1) has called my subvi(2)? In my subvi(2) I need to close the vi (2) that has called the subvi (2) where I am now, and then, when I close th

  • JBO-33001: Cannot find the configuration file /model/common/bc4j.xcfg

    I'm using ADF and trying to code a data action as follows: package checks.view; import oracle.adf.controller.struts.actions.DataActionContext; import oracle.adf.controller.struts.actions.DataForwardAction; import oracle.jbo.ApplicationModule; import

  • A solution to the CUPS (libcups) 1.6 printing problem

    Hi, I've read countless threads here and elsewhere about a really frustrating feature of CUPS 1.6: apparently you can't use libcups alone to browse existing printers in your network as we did in the past. Not even if you know the address of your loca

  • The security token could not be authenticated or authorized

    Hi All, I have an issue with Oracle Migration Tool On Demand. I run the following command to backup the AccessProfile: Oracle Migration Tool On Demand: migrationtool -u <user> -s https://secure-ausomxefa.crmondemand.com ReadAll AccessProfile Unfortun

  • Not all forwarded text messages are making it to my email

    I forwarded 4 text messages from my phone to my email. 3 of the messages made it to my email. The fourth one has yet to show up and I tried 4 times.  3 time yesterday and once (so far) this morning. Anyone know why this happens? This isn't the first