Why are my touch events got cancelled?

Hi, I have a UIScrollView, an UIView inside it as subview and a few UIImageView inside the UIView as subview. All UIView and UIImageView's userInteractionEnabled are set to NO.
I override touchesBegan, touchesMoved, touchesEnded, touchesCalcelled events of UIScrollView, just print out a message and call the correspondent method in super class. I found that most of my touches move and all my touches end events were called. Why?
Thank you very much. Please help me.
ff

Fixed my own problem.  Ultamately a user error but tied to the many threads about the month view defaulting events to "all day" vs. hourly increment.  I knew that was the case, so when editing events from month view I made sure to add/change the time, but negected to look at "To" date.  If my event was for an hour, simply adding the hour pushed the day to span across dates so the event was really 25 hours.  Looked OK in the month view (just showed as a dot) but the day and week were all filled and casued the event to appear twice on the second day in list view (iPhone).  In the case of repeat events, sometimes "To" date ended up as the end date for the repeat cycle... which really messed every thing up... I believe causing what looked like duplicates, etc.

Similar Messages

  • Why are 2 identical events created in iCal on my mac when I add event from mail ?

    why are 2 identical events created in iCal on my mac and not on my iPhone when I add event from mail created on a pc using OUTLOOK ?

    Nobody knows? Not even administrators?
    Please it would be really nice to have help on that to take all the benefit of the remote app.
    Thank you very much in advance.

  • Why are my iCal events not the same across views?

    Help!  I've been editing my iCal in Month view and everything looks great... but then I look at the day view (or week, whatever) and it's not the same.  For example, in Month view for July 2 - I have one event scheduled from 8:30-noon.  Then I look at the day view... and there are 8 different events!  Most of them duplicates of different things that I had at one time or another deleted or changed.  Why didn't the "clean up" work that I did in the month view carry over to day or week view?  In fact the opposite, there are more things in day or week views than I ever created.
    Recently upgraded to Lion from Snow Leopard.  Recently changed from mobileme to iCloud.  I only have iCal set to my iCloud account (no "on my mac" iCal calendar data). So the problem I see when editing on my MacBookPro is also seen when logged into iCloud directly via Safari and on my iPhone, iPad, etc.  At first I thought this was an iCloud syncing error because I only noticed the difference on my phone (list view)... but when I went back to my MacBookPro I realized the problem exists there too... so doesn't seem to be a syncing error, but rather a "view" error... then the "problem" is mirrored everywhere.
    I've tried "refresh" and "refresh all" from the Calendar drop down menu.  This does nothing to help the problem... not that I really expected it would.
    Thanks for any help you can provide.  I'm going crazy!
    Mac OS X 10.7.4; iCal 5.0.3

    Fixed my own problem.  Ultamately a user error but tied to the many threads about the month view defaulting events to "all day" vs. hourly increment.  I knew that was the case, so when editing events from month view I made sure to add/change the time, but negected to look at "To" date.  If my event was for an hour, simply adding the hour pushed the day to span across dates so the event was really 25 hours.  Looked OK in the month view (just showed as a dot) but the day and week were all filled and casued the event to appear twice on the second day in list view (iPhone).  In the case of repeat events, sometimes "To" date ended up as the end date for the repeat cycle... which really messed every thing up... I believe causing what looked like duplicates, etc.

  • Why are random calendar events being deleted from my iphone when I sync it with ical?

    My settings are such that events entered on both devices should push to both devices when I sync. The events being deleted from my iphone are not consistent (ie. older than a certain date), they are random.

    This happens to me INCESSANTLY.  I'm looking at my calendar events one second, and POOF!, the next second all of the events I've entered into the calendar- with the exception of birthdays that are on the actual contact information for a person- are GONE.  My calendar settings are set to sync all events- no timeframe- and always have been.  This happened to me nonstop on my old iPhone 3GS, and I was sure it was the phone causing this issue.  Now, I have my new iPhone 5 in my hands and same ol'   , different equipment.  I have done EVERYTHING I can think of to prevent this from happening or to restore the data- including rebooting, holding home button and on/off at same time, etc.- and NOTHING works to restore the data.  And then, just as magically as the data disappeared, POOF!- the data is back randomly sometime later.  That "later" may be 5 mins, a day, several days.  This is an absurd and EXASPERATING glitch that APPLE NEEDS TO FIX IMMEDIATELY!!!  I'm starting to hate the iPhone and Apple in general when I continuously experience HUGE glitches like this that have a profound impact on what you're trying to accomplish within a feature that you DEPEND on... yet Apple has "never heard of that problem before".  You suck, Apple.  Don't send your problems out into the real world, to users who just gave you $800 for another glitchy piece of equipment that never solves your software issues.

  • Why are some photo events missing when I synch my iPad with the new iMac?

    Very confused user here.
    I've just bought the new IMac, When I connected my iPad2 to the iMac and opened iPhoto on the iMac it asked to import photos. This proceeded, but when I checked it became clear that not all the events had been imported, even though iPhoto was saying that all the photos had been imported. There doesn't appear to be any reason why certain events have been missed - no difference in title, or date. How can I make sure all the photos are imported?

    If the iPad works like the iPhone you can move photos into the Camera Roll as shown here:
    Then from there it should sync to your Mac. That's how I got the screenshot above to my iMac and into this post.
    If you have an iCloud account and Photo Stream enabled on both your iMac and iPad new photos to the Camera Roll will automatically be synced with your iMac and imported into iPhoto as long as you have the iPhoto/Photo Stream preferences set this way:
    Of course this is assuming the iPad functions similarly to the iPhone in this regard and I should think it would.
    OT

  • Why are all the events in the XML SAX parser not activated?

    Hi everyone,
    I have written a mini server that parses XML files into SQL queries.
    Below is a segment of my code;
              try          {                                                       
                   Class.forName( JDBC_DRIVER );
                   myConnection = DriverManager.getConnection( DATABASE_URL, "username", "password");                                                  
                   EventXMLParser myEXP = new EventXMLParser(directory, myConnection);
                   File[] xmlFiles = directory.listFiles();
                   for (File xmlFile : xmlFiles)               {     
                        myEXP.XMLtoDB(xmlFile);
                        outWriter.println("File:" + xmlFile.getName() + " DONE");
              } catch (SQLException e)     {
                   System.err.println("SQLException for establishing connection");
                   e.printStackTrace();
              } catch (ClassNotFoundException e)     {
                   System.err.println("CLASS NOT FOUND EXCEPTION HERE");
                   e.printStackTrace();
              } catch (Exception e)     {
                   System.err.println(e);
                   e.printStackTrace();
              finally {
                   outWriter.println("PARSING COMPLETED");
                   outWriter.close();
         }Where the constructor EventXMLParser constructs the following:
         public EventXMLParser(File path, Connection connection)     {
              super();
              try     {
                   this.XMLpath = path;
                   this.db_connection = connection;
                   this.xr = XMLReaderFactory.createXMLReader();
                   this.XMLSAXhandler  = new DefaultHandler(); //create a new own handler
                   this.xr.setContentHandler(XMLSAXhandler);
                   this.xr.setErrorHandler(XMLSAXhandler);
                   //System.out.println("DEBUG: db_connection is " + db_connection.toString());
              catch (Exception e)     {
                   System.out.println("Constructor Error!");
                   e.printStackTrace();
         }Below are all my helper methods within EventXMLParser.java
         public void XMLtoDB(String XMLpath) throws Exception  {
              try     {
                   //Input
                   System.out.println("XMLpath is : " + XMLpath);
                   /*FileReader r = new FileReader(XMLpath); debug
                   InputSource in = new InputSource(r);
                   xr.parse(in);
                   xr.parse(XMLpath);
                   /* Note that while parsing, the end of each event, </event>
                    * will trigger sendSQL to execute the query on the database
              catch (Exception e)     {
                   throw new Exception("Error with XMLtoDB!! Exception: " + e);
         public void sendSQL(Event event, Connection sql_connection) throws SQLException     {
                   //JDBC part
                   try     {
                        System.err.println("DEBUG sendSQL");
                        Statement sql_statement = sql_connection.createStatement();
                        ResultSet resultSet = sql_statement.executeQuery( event.toSQL() );
                   catch (SQLException e)     {
                        e.printStackTrace();
         /* Parsing XML
          * From here onwards it's all designed for the SAX Parsing with different event calling methods
         public void startDocument()     {
              System.err.println("Start Document");
         public void endDocument()     {
              System.err.println("End Document");
         public void startElement(String uri, String name, String qName, Attributes atts)     {
              CurrentElement= name;
              System.out.println("This is parsing");
         public void characters(char ch[], int start, int length)     {
              SimpleDateFormat formatter = new SimpleDateFormat("yyyy-MM-dd hh:mm:ss");
              StringBuffer sb = new StringBuffer();
              for (int i = start; i < start + length; i++)     
                   sb.append(ch);
              String content = sb.toString();
              if (CurrentElement.equals("eid"))
                   temp.setEventID( (Integer.valueOf(content)).intValue() ) ;
              else if (CurrentElement.equals("sd"))
                   temp.setShort_description(content);
              else if (CurrentElement.equals("ld"))
                   temp.setLong_description(content);
              else if ( (CurrentElement.equals("dt")))
                   temp.setDate_Time( formatter.parse(content, new ParsePosition(0)) );
              else if (CurrentElement.equals("repeat"))
                   temp.setRepeat_pattern( (Integer.valueOf(content)).intValue() );
              else if (CurrentElement.equals("valid"))
                   temp.setValid_period(content);
              else if (CurrentElement.equals("status"))     {
                   temp.setStatus( (Integer.valueOf(content)).intValue() );
              else {}
         public void endElement(String uri, String name, String qName)     {
              System.err.println("DEBUG" + temp.toString()); /*debug*/
              if (name.equals("event"))     {
                   try     {
                        /*debug*/ temp.setUserID(1);
                        /*debug*/ System.err.println("DEBUG: " + temp.toString());
                        sendSQL(temp, db_connection);
                        //temp = new Event();
                   catch (SQLException e)     {
                        System.err.println(e);
                   }//end catch
              }//end try
    Where event is a public class Event     {
         //fields
         private int userID = 1; // = 1 only applies for testing
         private int eventID;
         private String short_description;
         private String long_description;
         private Date date_time = null;
         private int repeat_pattern;
         private String valid_period;
         private int status;     //1 for new, 0 for modification and -1 for delete
         SimpleDateFormat formatter = new SimpleDateFormat("yyyy-MM-dd hh:mm:ss");
         //Constructors
         //every event requires the following: userID eventID and short_Description
         public Event(int uID, int eID, String shortDescrp)     {
              setUserID(uID);
              setEventID(eID);
              setShort_description(shortDescrp);
         public Event(int uid, int eid, String sd,
                                  String ld, Date d_t, int r_p, String v_p, int s)     {
              setUserID(uid);
              setEventID(eid);
              setShort_description(sd);
              setLong_description(ld);
              setDate_Time(d_t);
              setRepeat_pattern(r_p);
              setValid_period(v_p);
              setStatus(s);
         //set
         public void setUserID (int x)                         { this.userID = x ;}
         public void setEventID (int x)                         { this.eventID = x ;}
         public void setShort_description (String x)          { this.short_description = x ;}
         public void setLong_description (String x)          { this.long_description = x ;}
         public void setDate_Time(Date x)                    { this.date_time = x ;}
         public void setRepeat_pattern (int x)               { this.repeat_pattern = x ;}
         public void setValid_period (String x)               { this.valid_period = x ;}
         public void setStatus (int x)                         { this.status = x; }
         //get
         public int           getUserID()                              { return this.userID;}
         public int           getEventID()                         { return this.eventID;}
         public String      getShort_description()               { return this.short_description;}
         public String      getLong_description()               { return this.long_description;}
         public Date        getDate_Time()                         { return this.date_time;}
         public int         getRepeat_pattern()                    { return this.repeat_pattern;}
         public String      getValid_period()                    { return this.valid_period;}
         public int           getStatus()                              { return this.status; }
         //Event to SQL statements;
         public String toSQL()     {
              StringBuffer sb = new StringBuffer();
              ///if ( status == 1)     {
                   sb.append( "INSERT INTO events SET" );
                   sb.append( " userID = " + userID + ", ");
                   sb.append( "eventID = " + eventID + ", " );
                   sb.append( "short_description = " + "\'" + short_description + "\'" + ", "); //String
                   sb.append( "long_description = " + "\'" + long_description + "\'"  + ", "); //String
                   sb.append( "date_time = " + "\'" + formatter.format(date_time) + "\'" + ", ");
                   sb.append( "repeat_pattern = " + repeat_pattern + ", " );
                   sb.append( "valid_period = " + "\'" + valid_period + "\'" ); //String
                   sb.append( ";");
              //} else if ( status == 2)      {
              System.err.println(sb.toString());
              return sb.toString();
    }     My question is: I have taken my SQL query generated by toSQL() method in events and it worked.
    Here is the funny thing:
    Everything is correct syntax wise: No complaints what soever
    The mysql part works: Tested separately.
    So I tend to think that the problem lies within the SAX parser. I have written SAX2 parsers on this machine before and they have worked too. I tried inserting println statements all over startElement endElement etc etc only to find out that the SAX parser did not call any of the methods that I overided!! Why is that so?
    Can you guys spot where my SAX parser fails?

    I see.
    I try to correct this problem by removing super();
    so right now my code looks like this:
         static Event temp = new Event(0, 0, "null", "null", new Date(), 0, "null", 0);
         static String CurrentElement = null;
         static File XMLpath;
         static Connection db_connection;
         static XMLReader xr;
         static DefaultHandler XMLSAXhandler; 
         //Constructor,      Build the SAX Parser
         public EventXMLParser(File path, Connection connection)     {
              try     {
                   this.XMLpath = path;
                   this.db_connection = connection;
                   this.xr = XMLReaderFactory.createXMLReader();
                   this.XMLSAXhandler  = new DefaultHandler(); //create a new own handler
                   this.xr.setContentHandler(XMLSAXhandler);
                   this.xr.setErrorHandler(XMLSAXhandler);
                   //System.out.println("DEBUG: db_connection is " + db_connection.toString());
              catch (Exception e)     {
                   System.out.println("Constructor Error!");
                   e.printStackTrace();
         }This time, I created a new instance of default handler() which can be referenced by as the objects's XMLSAXhandler. However, that did not solve the problem, why does the problem still persist?
    Right now, there is only one instance of a default handler created. So why does all my parsing event functions still get ignored?

  • Why are some calendar events duplicating?

    Some calendar events are duplicating.  Why is this happening?

    Dear, this is happening because of your iCloud sync. Note that if you deactivate your iCloud sync the duplicates will be removed. I don't know why Apple didn't solve this problem yet...

  • Why are my photo events scattered in iPhoto?

    I just got am iPad 2.  When I did my synch to move from my iPad, I noticed all of my events broke apart so I now I have several of the same events with different pictures in them.  Any idea what is going on?

    Hello!
    Try the following:
    1. CLOSE IPHOTO and make sure you have a back-up of your Mac, or at least of your iPhoto library
    2. Find your iPhoto Library in the Finder - usually in the Pictures folder - and click the gear and "show package content" See:
    3. Once you have clicked on "show package content" you see a Finder-window with technical-sounding folders and files.
    Trash the folders (if you have them, which is not guaranteed)
    Apple TV Photo Cache
    iPod Photo Cache
    iPhone Photo Cache
    Is your issue resolved?

  • Why are all my events showing up twice?  Each time I enter a new event, it duplicates (same day, same time, same details)

    The events auto duplicate - on the computer I use to enter them and on others that are synched to it.  If I delete one of the identical entries, both disappear.  Any suggestions?  Driving me nuts!  (ok, it may not be a long drive....)
    Thanks!!

    I have sort of the exact same problem. Extremely far away from user friendly
    I have an second issue as well: When I hook off all-day it comes up with an 8 hour event!
    And then if I put in a late start hour it pushes end time to next day due to the 8 hour event suggestion.
    All in all this gives a lot of changes just to enter an event.
    Command N
    I learnt from your input to use this fuction. At least that comes up with a one hour event as default.

  • Why are my calendar events not "merging"?

    I set up Icloud on my Mac and turned Icloud on on my new Iphone 4s.
    I added some calender events on my Macbook Pro and none of them are going to my calendar on my Iphone. 
    How do I get this to work right?
    I just realized that when I added an event on my Iphone last night, it did get sent to my calendar on my MBP, but it does not seem to be working the other way around.
    Any thoughts?
    Thanks.
    E

    I need to clarify a couple things in regard to my OP.
    First.  I just noticed that when I look at the "calendars" menu in Ical on my Mac, it only lists 3 of my 9 calendars under "Icloud'.
    I also noticed on my Iphone, when I click "calendars", it only lists the same 3.
    Also, I just created an event on my Iphone, it showed up on my Ical on my MBP, then I changed the calendar type on my MPB from "Home" to "Practice" (those are two calendars I use) and when I did that, it disapeared from my Iphone.
    So I think one issue here is that my Iphone/Icloud is only recognizing certain calendars and merging them as opposed to all calendars, so how do I get all the calendars to Icloud?
    Also, I think I still have an issue with going from MBP calendar to Iphone calendar, as I mentioned in OP.
    Thanks,
    E

  • Why are my calendar events gone since updating to ios7

    Ever since updating to iOS7 my calendar is empty.  All of my events are gone. Most of them remain on my computer calendar, but that seriously isn't helping me when I am out.  I have 10 kids and my calendar makes managing that possible.  HELP!!!

    Hello theim
    If you have not done so already, check to see if you are syncing with iCloud. You may just need to turn on that feature to see the calendars. Check both on your computer and on your iPhone.
    iCloud: Change iCloud feature settings
    http://support.apple.com/kb/PH2613
    Regards,
    -Norm G.

  • Why are the Touch apps marked with the † for included, when they are infact not included?

    Adobe you need to fix the Touch Apps and quit tricking people... Included† and it says "Touch Apps†"
    This indicating that they are INFACT INCLUDED....
    as it stands what you are realistically telling us is that none of the other products are included in the creative cloud only the touch apps... who ever you have setting this page up......
    When it should say Not Included†

    @DeLancieGalleries - It is not the email you purchased the apps with but the one you sign into the Creative Cloud with which will be the same. Relevant line 'a Qualifying Member must sign in to Creative Cloud from each of the Qualifying Touch Apps' from here http://store.adobe.com/store/en_us/popup/offer/touchapps.html.

  • Calendar: Why are 1-day events changing to 2-day events?

    This has happened to me several times today. When I edit a weekly (repeating) "all day" event (scheduled for today) on the Calendar on my iPhone, the event changes to a 2 day event (today - tomorrow). This change is pushed to the cloud and iCal on my Mac, as one would expect. I use my calendar like this several times a day, every day, and this isn't typical behavoir. Anyone else notice anything like this today? My Calendar is my life, so any time it does't work as expected, I get really nervous...
    Note that I'm still on iOS 5 and Lion.

    Ok, after posting this I found that I should have enquequed here: https://discussions.apple.com/message/11653252 Sorry for that. No solution there though

  • Why are there double events in iCal?

    I have an iMac, a MacBook Pro and and iPad and I sync my calendar in iCal on all three. The iPad and MacBook Pro work fine. Syncing is smooth, and each event appears only once. On the iMac, however, each event appears twice. If I try to delete the "double," after a few seconds both entrie disappear. This is very frustrating! Does anyone know what is happening?

    Welcome to the Apple Community.
    Check you aren't syncing your events through iCloud and iTunes.

  • Why are my iCal events (future events) just dissapearing?

    Not using iCloud or mobile me.  I am syncing my iPhone via iTunes. 
    Yesterday afternoon I created several new iCal events for today's and next week's calendar.  This morning when I opened my iCal none of my new events were present.  This morning, I recreated some of tomorrow's events.  Closed/re-opend iCal to find the events had disappeared again.  Also, seeminly unconnected but equally buggy - event alarms can be 1,2 3 hours late - radomly.  ughhh!

    In addition, I'm unable to delete some of the other events.

Maybe you are looking for